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

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, dolibarr/dolibarr (Packagist). Vendors: Dolibarr, 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.