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.