Dolibarr ERP CRM 7.0.3 Remote Code Execution via install/step1.php
Dolibarr ERP CRM 7.0.3 is vulnerable to remote code evaluation, allowing unauthenticated attackers to execute arbitrary code by injecting PHP code through the db_name parameter, leading to arbitrary command execution.
Dolibarr ERP CRM 7.0.3 is susceptible to a remote code evaluation vulnerability that permits unauthenticated attackers to execute arbitrary code. The vulnerability is located in the install/step1.php file and can be exploited by injecting PHP code into the db_name parameter via a POST request. This allows attackers to bypass authentication and execute arbitrary PHP code on the server, potentially leading to complete system compromise. This vulnerability was reported in May 2026 but relates to software version 7.0.3. Successful exploitation grants the attacker the ability to execute system commands, read sensitive data, and modify application configurations.
Attack Chain
- The attacker sends a POST request to
/install/step1.php. - The POST request includes the
db_nameparameter containing malicious PHP code. - The application improperly processes the injected PHP code within the
db_nameparameter. - The injected code is evaluated, allowing the attacker to execute arbitrary commands.
- The attacker then accesses the
check.phpendpoint using a GET request. - The GET request includes a
cmdparameter, specifying the command to be executed. - The server executes the command specified in the
cmdparameter. - The attacker gains arbitrary code execution on the server.
Impact
Successful exploitation of this vulnerability allows unauthenticated attackers to execute arbitrary code on the Dolibarr ERP CRM server. This could lead to complete system compromise, including the theft of sensitive data, modification of application configurations, and denial of service. Given the sensitive nature of data typically stored within an ERP CRM system, this vulnerability poses a significant risk to organizations using affected versions of Dolibarr.
Recommendation
- Apply available patches or upgrade to a secure version of Dolibarr ERP CRM to remediate CVE-2018-25357.
- Deploy the provided Sigma rule to detect exploitation attempts against
/install/step1.php. - Monitor web server logs for POST requests to
/install/step1.phpcontaining suspicious characters in thedb_nameparameter.
Detection coverage 2
Detects CVE-2018-25357 Exploitation — Dolibarr ERP CRM Remote Code Execution via install/step1.php
criticalDetects CVE-2018-25357 exploitation — HTTP POST to /install/step1.php with PHP code injection attempt in the db_name parameter
Detects CVE-2018-25357 Exploitation — Dolibarr ERP CRM Command Execution via check.php
highDetects CVE-2018-25357 exploitation — HTTP GET request to /check.php with a cmd parameter indicating command injection attempt after successful RCE via install
Detection queries are available on the platform. Get full rules →