# CVE-2018-25357: Dolibarr ERP CRM PHP code injection in install/step1.php

Source: https://junglewise.ai/threats/cve-2018-25357-dolibarr-erp-crm-php-code-injection-in-install-step1-php  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-23. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2018-25357 · Severity: critical · CVSS 9.8 · Published 2026-05-23

Dolibarr ERP CRM, a popular open-source suite for managing business operations like invoicing and inventory, contains a critical security flaw. An unauthenticated attacker can remotely execute malicious commands on the server by exploiting the installation script. This could lead to a total takeover of the system, resulting in the theft of sensitive business data, service disruption, or a complete compromise of the corporate network.

Technologies: [Dolibarr ERP/CRM](https://junglewise.ai/threats/technologies/erp-crm), [dolibarr/dolibarr (Packagist)](https://junglewise.ai/threats/technologies/dolibarr-dolibarr). Vendors: [Dolibarr](https://junglewise.ai/threats/vendors/dolibarr), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2018-25357 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-25357 being exploited in the wild.

**How severe is CVE-2018-25357?** Critical severity, with a CVSS score of 9.8, published 23 May 2026.

**Which products and versions are affected?** Dolibarr ERP/CRM >= 7.0.0, <= 7.0.3; < 6.0.8; Dolibarr ERP CRM <= 7.0.3; dolibarr/dolibarr (Packagist) ECOSYSTEM:introduced=7.0.0,fixed=7.0.4.

**Is there a fix for CVE-2018-25357?** Yes. dolibarr/dolibarr (Packagist): upgrade to 7.0.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2018-25357 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2018-25357?** Check whether you run Dolibarr ERP/CRM, Dolibarr ERP CRM or dolibarr/dolibarr (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- dolibarr/dolibarr (Packagist): upgrade to 7.0.4 or later

  ```sh
  composer require dolibarr/dolibarr:^7.0.4
  ```


## Technical details

A remote code execution (RCE) vulnerability exists in Dolibarr ERP CRM due to improper input validation in the 'db_name' parameter within the 'install/step1.php' script. An unauthenticated attacker can inject malicious PHP code into this parameter via a POST request. Once injected, the attacker can trigger the execution of this code by accessing the 'check.php' endpoint and passing system commands through the 'cmd' GET parameter. This allows for full system compromise with the privileges of the web server. The issue is patched in versions 6.0.8 and 7.0.4.

## Affected products

- Dolibarr Dolibarr ERP CRM >= 7.0.0, <= 7.0.3; < 6.0.8

## Identifiers

- CVE-2018-25357
- GHSA-hxmh-2xc4-c894

## Timeline

- 2018-05-23: disclosed: Initial vulnerability discovery/exploit publication date based on CVE-2018-25357 and Exploit-DB references.
- 2026-05-23: advisory: NVD publication date.
- 2026-05-26: advisory: GitHub Advisory published.

## References

- [https://dolibarr.org/](https://dolibarr.org/)
- [https://github.com/Dolibarr/dolibarr](https://github.com/Dolibarr/dolibarr)
- [https://www.exploit-db.com/exploits/44964](https://www.exploit-db.com/exploits/44964)
- [https://www.vulncheck.com/advisories/dolibarr-erp-crm-remote-code-evaluation-via-install-step1-php](https://www.vulncheck.com/advisories/dolibarr-erp-crm-remote-code-evaluation-via-install-step1-php)
- [https://github.com/Dolibarr/dolibarr/issues/9032](https://github.com/Dolibarr/dolibarr/issues/9032)

## Related threats

- [Dolibarr SQL injection in localtax parameters](https://junglewise.ai/threats/cve-2026-33944-dolibarr-has-sql-injection-in-societe-class-societe-class-php-via)
- [Dolibarr ERP CRM missing authorization in recruitment module](https://junglewise.ai/threats/cve-2026-118754-dolibarr-erp-crm-before-24-0-2-contains-a-missing-authorization)
- [Dolibarr ERP CRM OS command injection in export.php](https://junglewise.ai/threats/cve-2026-116219-dolibarr-erp-crm-before-24-0-0-contains-an-os-command-injection)
- [Dolibarr ERP CRM SQL injection in company bank accounts API](https://junglewise.ai/threats/cve-2026-116218-dolibarr-erp-crm-19-0-0-before-23-0-4-contains-an-sql-injection)
- [Dolibarr ERP CRM authorization bypass in extrafield update](https://junglewise.ai/threats/cve-2026-107706-dolibarr-erp-crm-before-24-0-2-contains-an-incorrect)
