All vulnerabilities

Servers and applications

CVE-2026-81729

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…

Severity
High 7.1
Published
27 Aug 2026
Last changed
31 Aug 2026
Added to UpHeron
1 Nov 2026
Fixed in
23.0.4
Exploit chance
0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data
CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Sources
NVD

Description

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.

From NVD.

Affected software

SoftwareAffected versions
Dolibarr ERP CRMServers and applications · cpe:a:dolibarr:dolibarr_erp\/crm
  • Every version before 23.0.4

About Dolibarr ERP CRM

Open Source ERP & CRM for Business

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
6Packagist, 15 Nov 2026
Total downloads (Packagist)
5,256Packagist, 15 Nov 2026
Docker Hub pulls
1,398,358Docker Hub, 15 Nov 2026
GitHub stars
7,873GitHub, 15 Nov 2026
Forks
3,622GitHub, 15 Nov 2026
Latest release
24.0.3GitHub, 15 Nov 2026
Released
11 Nov 2026GitHub
Developer
DolibarrWikidata
License
GPL-3.0GitHub
Written in
PHP, SQLWikidata
First released
2002Wikidata
First published on GitHub
26 Jun 2011GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-81729
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-81729