Quick answers
- Is CVE-2026-22666 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-22666 being exploited in the wild.
- How severe is CVE-2026-22666?
- High severity, with a CVSS score of 7.2, published 7 April 2026.
- Which products and versions are affected?
- Dolibarr ERP/CRM < 23.0.2.
- Is there a fix for CVE-2026-22666?
- A patch was published on 2026-04-04: Release 23.0.2 published Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-22666 attacked?
- It is attacked over the network, in a web application.
- Am I affected by CVE-2026-22666?
- Check whether you run Dolibarr Crm, Dolibarr ERP/CRM or Dolibarr Erp\ 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.
Technical details
An authenticated remote code execution (RCE) vulnerability exists in Dolibarr ERP/CRM's expression evaluation engine, specifically within the dol_eval_standard() function in /htdocs/core/lib/functions.lib.php. The function implements two validation modes (blacklist and whitelist), but fails to apply critical forbidden string checks (such as SplFileObject) when operating in the default whitelist mode. Furthermore, the regex-based validation fails to account for PHP dynamic callable syntax and only explicitly blocks the ReflectionFunction class, allowing the instantiation of other dangerous classes. Attackers with administrator privileges can exploit this by creating 'computed extrafields' containing malicious PHP payloads, which are then executed via eval() when the field is rendered. The vulnerability is addressed in version 23.0.2 by improving string syntax checks and blocking PHP comments used for obfuscation.
Affected products
- Dolibarr Dolibarr ERP/CRM < 23.0.2
Timeline
- 2026-04-04: patched: Release 23.0.2 published
- 2026-04-06: disclosed: Jiva Security writeup published
- 2026-04-07: advisory: CVE-2026-22666 published
References
- https://github.com/Dolibarr/dolibarr/commit/6f425521b3e6f9f27eca05228e02093dbaa40dea
- https://github.com/Dolibarr/dolibarr/releases/tag/23.0.2
- https://github.com/Dolibarr/dolibarr/security/advisories/GHSA-vmvw-qq8w-wqhg
- https://jivasecurity.com/writeups/dolibarr-remote-code-execution-cve-2026-22666
- https://www.vulncheck.com/advisories/dolibarr-erp-crm-authenticated-rce-via-dol-eval-standard