CVE-2026-130848

Dolibarr ERP CRM through 24.0.3 Code Injection via Website Template Import

Published Nov 17, 2026 CVSS 4.0 · 8.7 High EPSS n/a KEV · Not listed
Description
Dolibarr ERP CRM through 24.0.3 contains a code injection vulnerability in Website::importWebSite() that allows website editors without PHP permission to execute code by importing templates. Attackers can import a template zip whose javascript.js.php contains PHP code, which the public javascript.js.php endpoint includes, executing code as the web server user.

Analysis

AI-generated

Technical impact

Dolibarr ERP CRM version 24.0.3 and earlier contains a code injection flaw in the Website::importWebSite() function. The vulnerability allows an attacker who can import a website template to embed arbitrary PHP code in the javascript.js.php file inside a ZIP archive. When the public javascript.js.php endpoint is accessed, the PHP code is executed as the web server user, giving the attacker remote code execution on the hosting system.

Affected Systems

The affected product is Dolibarr ERP CRM by Dolibarr in all releases from the earliest through version 24.0.3 inclusive. Users running any of these versions are at risk unless a fix has been applied.

Risk and Exploitability

The vulnerability has a CVSS score of 8.7, indicating a high impact if exploited. The EPSS score is not available, and it is not listed in the CISA KEV catalog. The likely attack vector is by a user with the ability to import website templates, such as a website editor role; therefore the risk is confined to individuals who can upload and import templates. However, because the injection can bypass PHP permission and run as the web server user, any successful exploitation results in full remote code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official Dolibarr patch released after commit 71e0009105ed83057e66b11c94b552b0c378d32c, upgrading to version 24.0.4 or later.
  • If no patch is available, restrict the template import feature to administrators or remove the privilege for website editors to import ZIP files that may contain PHP code.
  • Disable or protect the public javascript.js.php endpoint so that it no longer executes arbitrary PHP files uploaded through website templates.

Generated by OpenCVE AI on November 17, 2026 at 21:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Dolibarr dolibarr Erp/crm
Vendors & Products Dolibarr dolibarr Erp/crm
Type Values Removed Values Added
Description Dolibarr ERP CRM through 24.0.3 contains a code injection vulnerability in Website::importWebSite() that allows website editors without PHP permission to execute code by importing templates. Attackers can import a template zip whose javascript.js.php contains PHP code, which the public javascript.js.php endpoint includes, executing code as the web server user.
Title Dolibarr ERP CRM through 24.0.3 Code Injection via Website Template Import
First Time appeared Dolibarr
Dolibarr dolibarr Erp\/crm
Weaknesses CWE-94
CPEs cpe:2.3:a:dolibarr:dolibarr_erp\/crm:*:*:*:*:*:*:*:*
Vendors & Products Dolibarr
Dolibarr dolibarr Erp\/crm
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 1:40 AM
Reserved
Nov 17, 2026, 5:51 PM
Status
Received
Published
Nov 17, 2026, 8:17 PM
Modified
Nov 17, 2026, 8:17 PM