All vulnerabilities

Servers and applications

CVE-2026-23500

OS Command Injection (RCE) via MAIN_ODT_AS_PDF configuration

Severity
Critical 9.4
Published
17 Apr 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
23.0.0, 23.0
Exploit chance
0.9% in the next 30 daysHigher than 61% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
OS command injection (CWE-78)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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
Also known as
GHSA-w5j3-8fcr-h87w
Sources
NVD, Project advisories (GitHub)

Description

An authenticated administrator can execute arbitrary operating system commands by injecting a malicious payload into the MAIN_ODT_AS_PDF configuration constant. This vulnerability exists because the application fails to properly validate or escape the command path before passing it to the exec() function in the ODT to PDF conversion process.

The vulnerability is located in htdocs/includes/odtphp/odf.php. When the system tries to convert an ODT document to PDF (e.g., in Proposals, Invoices), it constructs a shell command using the MAIN_ODT_AS_PDF global setting.

Code snippet (htdocs/includes/odtphp/odf.php, approx line 930):

While the filename $name is sanitized using escapeshellcmd(), the configuration variable MAIN_ODT_AS_PDF is retrieved directly from the database and concatenated at the beginning of the string. An attacker with administrative privileges can set this variable to include a command separator (like ;) followed by arbitrary commands.

From Dolibarr/dolibarr's security advisory. Shortened; the full text is there.

Affected software

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

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-23500
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-23500
  • GitHub Advisory Database https://github.com/advisories/GHSA-w5j3-8fcr-h87w
  • github.com https://github.com/Dolibarr/dolibarr/security/advisories/GHSA-w5j3-8fcr-h87w