CVE-2026-81729CWE-863broken-access-control

CVE-2026-81729

Medium · published August 28, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
32.3
In the wild
Unconfirmed
What it is

Dolibarr before 23.0.4 authorizes REST API document deletion against the wrong permission. Documents::delete() in htdocs/api/class/api_documents.class.php calls dol_check_secure_access_document() with the mode argument 'read' when handling DELETE /api/index.php/documents, while the sibling builddoc() path passes 'write', the correct mode for an operation that modifies stored data. An authenticated API user who holds only a read permission for a document-bearing module, for example societe:lire or facture:lire, and no create, write, delete or admin permission, therefore passes the check and can permanently delete that module's documents: third-party files, invoices, orders, proposals, project files and generated PDFs, with no recovery path. The call site is htdocs/api/class/api_documents.class.php:1276 in 23.0.3 and passes 'write' from 23.0.4 onward.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
7.1 · CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS
0.00393 · 32.3th percentile
Weakness
CWE-863 · Incorrect Authorization
Published
2026-08-28T00:18Z
Affected products (1)
ProductVersionsFixed in
dolibarr/dolibarr_erp\/crm< 23.0.423.0.4
References (4)
EPSS history
Timeline
  • 27 AUG 20:07Z
    Dolibarr before 23.0.4 Incorrect Authorization on REST API Document Deletion
    cvelistv5