Dolibarr: OS Command Injection (RCE) via MAIN_ODT_AS_PDF configuration
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
Dolibarr is an enterprise resource planning (ERP) and customer relationship management (CRM) software package. In versions prior to 23.0.0 , the ODT to PDF conversion process in odf.php concatenates the MAIN_ODT_AS_PDF configuration constant directly into a shell command passed to exec() without sanitization. An authenticated administrator can inject arbitrary OS commands via this constant using command separators, achieving remote code execution as the web server user when any ODT template is generated. This issue has been fixed in version 23.0.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Dolibarr | dolibarr | before 23.0.0 | 23.0.0 | Patch available | CNA |
| — | dolibarr/dolibarr (Packagist) | up to 22.0.4 | — | No fix listed | GHSA-w5j3-8fcr-h87w |
- dolibarr VendorDolibarr Affected before 23.0.0 Fixed in 23.0.0 Patch available CNA
- dolibarr/dolibarr (Packagist) Vendor— Affected up to 22.0.4 Fixed in — No fix listed GHSA-w5j3-8fcr-h87w
Remediation
- Fix · CNA dolibarr (Dolibarr) Fixed in 23.0.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-23500
- 2026-10-03 Alias added: GHSA-w5j3-8fcr-h87w
References
More Dolibarr Erp/crm vulnerabilities
- TI-2022-21049 Dolibarr Open Source ERP & CRM for Business before v14.0.1 allows attackers to escalate privileges via a crafted API. CVSS 3.1CRITICAL 9.8
- TI-2022-03742 SQL Injection in dolibarr/dolibarr CVSS 3.1CRITICAL 9.8
- TI-2023-14191 Dolibarr before 17.0.1 allows remote code execution by an authenticated user via an… CVSS 3.1HIGH 8.8
- TI-2018-15582 Dolibarr ERP CRM 7.0.3 Remote Code Execution via install/step1.php CVSS 4.0CRITICAL 9.3
- TI-2019-15505 Dolibarr ERP/CRM 10.0.1 SQL Injection via elemid CVSS 4.0HIGH 8.8
- TI-2023-20161 Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a… CVSS 3.1CRITICAL 9.6
Sources
- CVE-2026-23500 · CVE Program
- CVE-2026-23500 · NVD
- FIRST EPSS
- GHSA-w5j3-8fcr-h87w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences