Severity by source
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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
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
Lifecycle Timeline
7DescriptionGitHub Advisory
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.
AnalysisAI
Command injection in Dolibarr ERP/CRM versions before 23.0.0 allows authenticated administrators to execute arbitrary operating system commands during ODT-to-PDF template conversion. The vulnerability stems from unsanitized concatenation of the MAIN_ODT_AS_PDF configuration constant into shell commands in odf.php. Exploitation requires administrative privileges (PR:H) but can be executed remotely (AV:N) with low complexity (AC:L), resulting in full system compromise as the web server user. Fixed in version 23.0.0. EPSS data not available; no public exploit identified at time of analysis.
Technical ContextAI
Dolibarr's ODT (OpenDocument Text) template processing mechanism converts documents to PDF by invoking external system commands via PHP's exec() function. The odf.php module constructs these commands by directly concatenating the MAIN_ODT_AS_PDF configuration setting without input validation or escaping. This is a classic CWE-78 (OS Command Injection) vulnerability where untrusted input flows into a shell command interpreter. Administrators can modify the MAIN_ODT_AS_PDF constant through the application's configuration interface. By injecting shell metacharacters (such as semicolons, pipes, or command substitution operators), attackers can append arbitrary commands that execute with the privileges of the web server process (typically www-data, apache, or nginx user). The vulnerability affects all Dolibarr installations prior to version 23.0.0 across all platforms where the ODT template feature is enabled.
RemediationAI
Upgrade to Dolibarr version 23.0.0 or later, which implements proper input sanitization for the MAIN_ODT_AS_PDF configuration constant. The patched version is available from the official GitHub repository at https://github.com/Dolibarr/dolibarr/releases/tag/23.0.0. If immediate patching is not feasible, implement compensating controls: disable ODT template generation functionality by restricting access to odf.php at the web server level (e.g., Apache/Nginx configuration blocking the specific endpoint), which prevents exploitation but breaks ODT-to-PDF conversion features for all users; apply strict web application firewall (WAF) rules to detect and block shell metacharacters in configuration settings, though this may be bypassed with encoding techniques; or limit administrative access to only trusted IP addresses via firewall rules and enforce multi-factor authentication for all admin accounts to reduce credential compromise risk. Each workaround has operational impact on either functionality or administrative workflows, making version upgrade the preferred solution. Review system logs for suspicious exec() calls or unexpected child processes spawned by the web server as indicators of prior exploitation.
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-23502
GHSA-w5j3-8fcr-h87w