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
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
6DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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-94 – Code Injection
View allSame technique Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-24134
GHSA-676v-wh57-p375