CVE-2018-25357 Dolibarr ERP CRM 7.0.3 Remote Code Execution via install/step1.php
Unauthenticated attackers can execute arbitrary code by injecting PHP into the installer's database name parameter, requiring the installation interface to be accessible.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-25357?
CVE-2018-25357 is a critical code injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 23 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Dolibarr ERP CRM 7.0.3 contains a remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary code by injecting PHP code through the db_name parameter. Attackers can send a POST request to install/step1.php with malicious PHP code in the db_name parameter, then execute commands via the check.php endpoint using the cmd GET parameter.
Weakness: CWE-94
Which versions are affected by CVE-2018-25357?
4 open source packages ship an affected version, including dolibarr/dolibarr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dolibarr/dolibarr Packagist | All versions | 6.0.8 |
dolibarr/dolibarr Packagist | All versions | 6.0.8 |
dolibarr/dolibarr Packagist | From 7.0.0 | 7.0.4 |
dolibarr/dolibarr Packagist | From 7.0.0 | 7.0.4 |
Products include Dolibarr Dolibarr Erp\/Crm.
How do I fix CVE-2018-25357?
Upgrade dolibarr/dolibarr to a fixed version for your release line: 6.0.8 or 7.0.4.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-25357 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-25357 exists.
Other vulnerabilities in Dolibarr Dolibarr Erp\/Crm
Sources
Also known as GHSA-hxmh-2xc4-c894, UBUNTU-CVE-2018-25357, USN-8448-1.