Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as website editor
-
DeliveryUpload crafted template zip with PHP in javascript.js.php
-
ExploitImport writes file to web output dir
-
ExecutionRequest public javascript.js.php endpoint
-
ImpactPHP executes as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Dolibarr account with the website-editor capability but is explicitly possible WITHOUT the PHP-editing permission - that privilege-boundary bypass is the core of the flaw. The attacker must use the website template import feature (Website::importWebSite()) to supply a zip whose javascript.js.php embeds PHP, and execution occurs when the public javascript.js.php endpoint includes that file. Limiting factors: PR:L means low-privileged but still valid editor access is needed (not pre-auth), the website module must be in use, and versions at or before 24.0.3 are affected - patched builds reject imported files containing PHP dynamic content. |
| Impact | This is a credible this-week priority rather than an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) describes a network-reachable, low-complexity attack needing no user interaction and only low privileges, with high impact to confidentiality, integrity and availability (VC:H/VI:H/VA:H) because successful exploitation yields PHP code execution as the web server user - consistent with the CWE-94 classification and the 8.7 High score. The one genuine gating factor is PR:L: an attacker must already hold a Dolibarr 'website editor' role, which is why this is a privilege-escalation/code-execution path (editor without PHP permission gains PHP execution) rather than a pre-auth RCE. No EPSS score and no CISA KEV entry were provided, and no confirmed working exploit is referenced - only a VulnCheck advisory - so there is no signal of active or widespread exploitation at this time; the risk is driven by severity and ease of exploitation for anyone who already has editor access, not by observed in-the-wild activity. The SSVC/decision inputs are limited to the vendor priority label 'this_week', which aligns with a patched, high-impact but privilege-gated flaw. Net: patch promptly, especially where untrusted or low-trust users hold website-editor roles. |
| Exploit ScenarioDerived | An attacker holding a low-privileged Dolibarr website-editor account (without PHP permission) crafts a website template zip in which javascript.js.php contains PHP code, then uses the website import feature to load it. Because the public javascript.js.php endpoint includes that file, the planted PHP executes as the web server user when the endpoint is requested, giving code execution. No confirmed public exploit code is referenced, only a VulnCheck advisory describing the issue. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Code injection in Dolibarr ERP CRM through 24.0.3 lets a website editor who lacks the PHP-editing permission run arbitrary PHP as the web server user by importing a crafted website template. The editor uploads a template zip whose javascript.js.php carries embedded PHP, and the publicly reachable javascript.js.php endpoint then includes that file - so the deliberate privilege boundary between 'can edit website content' and 'can run server-side code' collapses. The flaw is rated 8.7 (assessed CVSS:3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), requires an authenticated low-privileged account plus use of the website module, and no public exploit has been identified at time of analysis; the vendor fix is available upstream and priority is this-week rather than emergency.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Apply commit 71e0009105ed83057e66b11c94b552b0c378d32c (https://github.com/Dolibarr/dolibarr/commit/71e0009105ed83057e66b11c94b552b0c378d32c) and confirm the deployment runs a Dolibarr build later than 24.0.3 that contains it, since Dolibarr advisories and the VulnCheck write-up (https://www.vulncheck.com/advisories/dolibarr-erp-crm-through-24.0.3-code-injection-via-website-template-import) are the authoritative confirmation points. Verify after upgrading by attempting a template import whose javascript.js.php contains PHP: a fixed instance must abort with the 'PHP dynamic content' error instead of completing the import. Until the patched build is in place, the practical compensating control is to withdraw website-template-import access from low-privileged website editors and reserve it for trusted administrators, understanding that this narrows the feature set for content staff and does not remove the underlying inclusion of PHP-backed assets; note that the vulnerability is only reachable while the Website module is enabled, so disabling that module closes the exposure entirely at the cost of losing the public website feature. There is no documented configuration flag in the supplied sources that sanitizes imported containers on an unpatched release.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dolibarr's Website module stores each site under a directory of 'containers' that mix static assets with PHP-backed wrappers (javascript.js.php, styles.css.php, manifest.json.php, htmlheader.html). The template import routine Website::importWebSite() previously copied the imported containers directory wholesale into the live output directory with dolCopyDir(), without inspecting file contents. Because those wrappers are later served and included by the public website endpoint, any PHP an editor embedded in the imported javascript.js.php was executed server-side - a classic CWE-94 code injection where data (an uploaded template) is treated as executable code. The upstream fix commit 71e0009105ed83057e66b11c94b552b0c378d32c removes the bulk copy and handles each special file individually: it runs dolKeepOnlyPhpCode() over robots.txt, .dolibarr, .htaccess, LICENSE, README.md, javascript.js.php and manifest.json.php, strips the generated 'BEGIN PHP ... END PHP' marker blocks before regeneration, and aborts the import with an explicit error when residual PHP dynamic content is detected. The CPE cpe:2.3:a:dolibarr:dolibarr_erp_crm with wildcard version confirms the impact is product-wide for releases up to and including 24.0.3, independent of deployment platform.
Know when Dolibarr Erp Crm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable import feature usable by a low-privileged website editor without user interaction (PR:L/AC:L/UI:N), yielding full code execution as the web server user (C/I/A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Dolibarr ERP CRM (up to version 24.0.3) contains a high-severity code injection flaw that enables a website editor without PHP-editing rights to execute arbitrary server-side code. This undermines the intended separation between content editing and server administration, potentially exposing sensitive business data and disrupting critical operations. Leadership should prioritize remediation because the vulnerability affects core ERP systems and could be exploited by an authenticated low-privileged user.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Dolibarr Erp Crm
View allAn issue in Dolibarr ERP CRM v.17.0.1 and before allows a remote privileged attacker to execute arbitrary code via a cra
Dolibarr before 17.0.1 allows remote code execution by an authenticated user via an uppercase manipulation: <?PHP instea
Dolibarr ERP/CRM 4.0.4 has SQL Injection in doli/theme/eldy/style.css.php via the lang parameter. Rated critical severit
Cross Site Scripting vulnerability in Dolibarr ERP CRM v.17.0.1 and before allows a remote attacker to obtain sensitive
Dolibarr ERP/CRM 4.0.4 stores passwords with the MD5 algorithm, which makes brute-force attacks easier. Rated critical s
SQL injection attacks can result in unauthorized access to sensitive data, such as passwords, credit card details, or pe
Dolibarr Open Source ERP & CRM for Business before v14.0.1 allows attackers to escalate privileges via a crafted API. Ra
Dolibarr ERP & CRM <=15.0.3 is vulnerable to Eval injection. Rated critical severity (CVSS 9.8), this vulnerability is r
The website builder module in Dolibarr 13.0.2 allows remote PHP code execution because of an incomplete protection mecha
The htdocs/index.php?mainmenu=home login page in Dolibarr 10.0.6 allows an unlimited rate of failed authentication attem
Dolibarr ERP CRM 7.0.3 contains a remote code evaluation vulnerability that allows unauthenticated attackers to execute
Vulnerabilities in Dolibarr ERP - CRM that affect version 9.0.1 and allow SQL injection. Rated critical severity (CVSS 9
EUVD-2026-127254
GHSA-7pjv-w5cj-v97w
NVD
CVE.org
EPSS
Exploit-DB