Skip to main content

Dolibarr ERP & CRM EUVDEUVD-2026-24134

| CVE-2026-31018 HIGH
Code Injection (CWE-94)
2026-04-21 mitre GHSA-676v-wh57-p375
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Recon
    Obtain low-privilege credentials
  2. Delivery
    Authenticate to Dolibarr
  3. Exploit
    Access Website module
  4. Install
    Craft page creation request with PHP injection in unprotected parameter
  5. C2
    Submit malicious request bypassing permission checks
  6. Execute
    PHP code stored on server
  7. Impact
    Trigger code execution via page access
  8. Step 8
    Execute system commands as web server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires authenticated access to Dolibarr with low-privileged user account having permission to access the Website module and create/edit website pages. Specifically exploitable when victim Dolibarr instance implements role-based permission tiers where some users are restricted to HTML/JavaScript editing only (not full PHP editing rights). The vulnerability exists in default configurations of the Website module through version 22.0.4. Does NOT require administrative privileges or special server configuration-standard Dolibarr installations with the Website module enabled are vulnerable. Exploitation is LIMITED by the need for valid credentials (PR:L in CVSS vector), making this primarily an insider threat or post-credential-compromise attack vector rather than anonymous internet exploitation. Organizations not using the Website module or those granting only trusted administrators access to it face reduced practical risk despite the high CVSS score.

Impact

Real-world risk is HIGH for organizations running Dolibarr with multiple user tiers or untrusted authenticated users. The CVSS vector (AV:N/AC:L/PR:L/UI:N) indicates network-accessible exploitation with low complexity requiring only low-privileged authentication-no user interaction needed. This combination makes the vulnerability straightforward to exploit once an attacker has valid credentials. The CVSS 8.8 score accurately reflects the severe impact: complete compromise of confidentiality, integrity, and availability within the application scope. Public POC availability on GitHub significantly lowers the exploitation barrier, enabling even less-skilled attackers to weaponize the flaw. However, the PR:L requirement (authenticated access needed) somewhat limits mass exploitation compared to unauthenticated RCE. Risk is highest in multi-tenant deployments, organizations with external contractors/partners holding low-privilege Dolibarr accounts, or environments where credential compromise is likely (phishing, credential stuffing). The vulnerability enables privilege escalation from content editor to full server control, making it critical for insider threat scenarios. EPSS score unavailable and no CISA KEV listing suggests exploitation is not yet widespread, but the public POC availability changes this calculus-assume exploitation capability is now commoditized. Missing data: no vendor security advisory URL found in references; patch availability and fix version unknown from provided data.

Exploit ScenarioDerived

An attacker with valid low-privilege Dolibarr credentials (intended only for HTML/JavaScript editing) logs into the application and navigates to the Website module. During website page creation, instead of using the main editor interface where PHP permissions are enforced, the attacker manipulates secondary HTTP POST parameters-potentially through browser developer tools, intercepting proxy like Burp Suite, or direct API calls-to inject PHP code (e.g., web shell payload) into unprotected fields. The inconsistent input validation allows this PHP code to be saved to the server filesystem or database. When the attacker or any user accesses the crafted page, the server executes the injected PHP code with web server privileges, granting the attacker remote command execution. From there, the attacker can read sensitive database contents (customer data, credentials), modify ERP records, pivot to internal network systems, or establish persistent access. Public proof-of-concept code significantly lowers the technical skill required for exploitation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 21, 2026

Authenticated users with restricted HTML/JavaScript editing permissions in Dolibarr ERP & CRM 22.0.4 and earlier can escalate privileges to execute arbitrary PHP code via the Website module. The vulnerability exploits inconsistent permission enforcement across input parameters during website page creation, allowing low-privileged authenticated users to bypass intended restrictions and inject PHP code. Public proof-of-concept exists on GitHub (PhDg1410), though no active exploitation is confirmed by CISA KEV. EPSS data unavailable, but the CVSS 8.8 score reflects high impact across confidentiality, integrity, and availability when exploited by authenticated insiders or compromised accounts.

RemediationAI

Primary mitigation is upgrading to a patched version of Dolibarr if available-check the official Dolibarr GitHub repository (github.com/Dolibarr/dolibarr) security advisories and release notes for versions newer than 22.0.4 that address this PHP code injection flaw. No specific fix version was confirmed in the provided data, so verify directly with vendor sources. Until patching, implement these compensating controls with noted trade-offs: (1) Disable the Website module entirely if not business-critical-this eliminates the attack surface but removes website management functionality. (2) Restrict Website module access to only fully-trusted administrator accounts by modifying user permissions in Setup > Users-reduces insider threat risk but limits content management workflows. (3) Implement application-layer firewall rules (ModSecurity, NAXSI) to detect and block PHP code patterns in POST requests to Website module endpoints-may cause false positives requiring tuning and does not prevent exploitation via authenticated sessions. (4) Enable PHP disable_functions in php.ini to restrict dangerous functions (system, exec, passthru, shell_exec, proc_open) for the Dolibarr web directory-reduces impact of successful PHP injection but may break legitimate application features requiring testing. (5) Deploy file integrity monitoring (AIDE, Tripwire) to detect unauthorized PHP file modifications in the Dolibarr documents and website directories-provides detection but not prevention. Review the proof-of-concept details at github.com/PhDg1410/CVE/blob/main/CVE-2026-31018/README.md to understand specific exploitation vectors and tailor defenses accordingly.

Affected VersionsENISA

n/a n/a

Affected Packages

composer dolibarr/dolibarr no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Dolibarr is an open-source ERP and CRM platform written in PHP, widely used by SMEs for business management. The Website module allows users to create and edit web pages with varying permission levels-some users are restricted to HTML/JavaScript editing while others can edit PHP code. This vulnerability stems from CWE-94 (Improper Control of Generation of Code), where the application fails to consistently apply permission checks across all input parameters during page creation. While the primary editing interface enforces restrictions, alternative or secondary input vectors (likely form parameters, AJAX endpoints, or API calls) bypass these checks. The CPE string provided is generic (n/a:n/a), indicating NVD has not yet cataloged specific version ranges-affected versions are derived solely from the researcher's disclosure stating versions through 22.0.4. The PHP code injection occurs server-side, meaning successful exploitation grants the attacker the ability to execute arbitrary PHP with the web server's privileges, typically leading to full application compromise.

Know when PHP 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

Vendor (mitre) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (mitre) · only source for this CVE.

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
Apr 21, 2026 - 16:22 NVD
8.8 (HIGH)
CVE Published
Apr 21, 2026 - 00:00 nvd
HIGH 8.8

DescriptionCVE.org

In Dolibarr ERP & CRM <= 22.0.4, PHP code detection and editing permission enforcement in the Website module is not applied consistently to all input parameters, allowing an authenticated user restricted to HTML/JavaScript editing to inject PHP code through unprotected inputs during website page creation.

Executive ViewAI

Why It Matters

Dolibarr ERP & CRM versions 22.0.4 and earlier contain a privilege escalation vulnerability (CVSS 8.8) that allows authenticated users with limited website editing permissions to execute arbitrary PHP code and compromise system integrity. Any internal user with restricted HTML/JavaScript access or compromised credentials in these versions can escalate to full system control, creating significant insider threat and data breach risk across financial, operational, and customer data stored in the platform.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict Website module access to essential administrators only; (2) Implement file integrity monitoring on website PHP directories; (3) Disable PHP execution in web-editable directories via web server configuration (.htaccess or nginx rules); (4) Apply input validation at the application layer to reject PHP code patterns in Website module parameters; (5) Monitor authentication logs for anomalous account activity; (6) Isolate Dolibarr instances on restricted network segments with egress filtering.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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