Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privilege credentials
-
DeliveryAuthenticate to Dolibarr
-
ExploitAccess Website module
-
InstallCraft page creation request with PHP injection in unprotected parameter
-
C2Submit malicious request bypassing permission checks
-
ExecutePHP code stored on server
-
ImpactTrigger code execution via page access
-
Step 8Execute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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
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.
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
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
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
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
EUVD-2026-24134
GHSA-676v-wh57-p375
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB