CVE-2026-22666 Dolibarr ERP/CRM < 23.0.2 Authenticated RCE via dol_eval_standard()
Authenticated administrators can achieve arbitrary code execution in Dolibarr ERP/CRM by bypassing validation in the dol_eval_standard function.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-22666?
CVE-2026-22666 is a high-severity code injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 7 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Dolibarr ERP/CRM versions prior to 23.0.2 contain an authenticated remote code execution vulnerability in the dol_eval_standard() function that fails to apply forbidden string checks in whitelist mode and does not detect PHP dynamic callable syntax. Attackers with administrator privileges can inject malicious payloads through computed extrafields or other evaluation paths using PHP dynamic callable syntax to bypass validation and achieve arbitrary command execution via eval().
Which versions are affected by CVE-2026-22666?
It affects 1 product.
Products include Dolibarr Dolibarr Erp\/Crm.
How do I fix CVE-2026-22666?
No fix has been published for CVE-2026-22666 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-22666 being exploited?
There is no known exploitation of CVE-2026-22666 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Dolibarr Dolibarr Erp\/Crm
Sources
Also known as GHSA-m6qg-6w6h-v59x, GHSA-vmvw-qq8w-wqhg, UBUNTU-CVE-2026-22666.