
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31019 is a PHP function blacklist bypass vulnerability in the Website module of Dolibarr ERP & CRM that enables authenticated users to achieve remote code execution (RCE) and execute arbitrary operating system commands on the server. It affects Dolibarr ERP/CRM versions up to and including 22.0.4. The vulnerability was reported to the vendor on 2026-02-06, acknowledged on 2026-02-12, assigned a CVE on 2026-04-07, and publicly disclosed on 2026-04-21. It carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, CVE README).
The root cause is an improper blacklist-based input validation mechanism (CWE-78: OS Command Injection) in the Dolibarr Website module, which attempts to block dangerous PHP functions such as eval, system, and shell_exec using string-based pattern matching. Because the filter relies solely on static string matching, it can be bypassed using obfuscation techniques including encoding, string concatenation, or indirect function invocation — allowing attackers to reconstruct and invoke restricted functions at runtime. Exploitation requires an authenticated user account with permission to edit PHP content in the Website module, after which the attacker can inject and execute arbitrary PHP code that invokes OS-level commands (CVE README, GitHub Advisory).
Successful exploitation grants an attacker full remote code execution on the server, enabling arbitrary OS command execution with the privileges of the web server process. This results in complete compromise of confidentiality (access to sensitive ERP/CRM data including financial records, customer data, and credentials), integrity (modification or deletion of data and system files), and availability (service disruption or malware installation). Attackers could also use the compromised server as a pivot point for lateral movement within the internal network (CVE README, GitHub Advisory).
As of the time of disclosure, there is no public proof-of-concept exploit code and no evidence of active in-the-wild exploitation (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.119% (30th percentile), indicating a relatively low near-term exploitation probability. No threat actor attribution has been reported. Detection signatures are available via Nessus (ID: 310628) and Qualys (ID: 5011572) (Feedly).
$f = 'sys'.'tem'; $f('id');), base64 encoding (eval(base64_decode('...'))), or variable function calls to invoke blocked functions like system, shell_exec, or passthru..php files with encoded payloads) in the Dolibarr web root or Website module directories; modified PHP content files containing obfuscated code patterns such as base64_decode, str_rot13, or concatenated function names.apache2, php-fpm) such as bash, sh, curl, wget, or nc; unexpected outbound network connections from the web server.Upgrade Dolibarr ERP/CRM to a version above 22.0.4 as the primary remediation; the GitHub Advisory notes no patched version has been formally designated yet, so monitor the official Dolibarr release channel for a fix (GitHub Advisory). As an immediate workaround, restrict access to the Website module's PHP editing functionality to only highly trusted administrators, and audit existing user permissions to remove unnecessary PHP editing rights. Implement server-side controls such as PHP's disable_functions directive in php.ini to block dangerous functions at the interpreter level, independent of application-layer filtering. Enable audit logging for all Website module edits and monitor for obfuscated PHP patterns (CVE README).
The vulnerability was noted on Mastodon by @thehackerwire shortly after disclosure, indicating some community awareness. INCIBE-CERT (Spain's national cybersecurity agency) published an early warning advisory for the vulnerability. No major vendor statements or significant researcher commentary beyond the original disclosure have been identified (Feedly).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."