# CVE-2026-22666: Dolibarr ERP/CRM remote code execution in dol_eval_standard

Source: https://junglewise.ai/threats/cve-2026-22666-dolibarr-erp-crm-remote-code-execution-in-dol-eval-standard  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-07. Updated: 2026-07-14  
License: CC BY 4.0 with a link back

CVE-2026-22666 · Severity: high · CVSS 7.2 · Published 2026-04-07

Dolibarr ERP/CRM, a popular open-source business management suite, contains a security flaw in how it evaluates custom data fields. An attacker with administrative access can bypass security filters to execute malicious code on the underlying server. This could lead to a complete system takeover, unauthorized access to sensitive business data, or service disruption.

Technologies: [Dolibarr Crm](https://junglewise.ai/threats/technologies/crm), [Dolibarr ERP/CRM](https://junglewise.ai/threats/technologies/erp-crm), [Dolibarr Erp\](https://junglewise.ai/threats/technologies/dolibarr-erp). Vendors: [Dolibarr](https://junglewise.ai/threats/vendors/dolibarr).

## 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/commit/6f425521b3e6f9f27eca05228e02093dbaa40dea)
- [https://github.com/Dolibarr/dolibarr/releases/tag/23.0.2](https://github.com/Dolibarr/dolibarr/releases/tag/23.0.2)
- [https://github.com/Dolibarr/dolibarr/security/advisories/GHSA-vmvw-qq8w-wqhg](https://github.com/Dolibarr/dolibarr/security/advisories/GHSA-vmvw-qq8w-wqhg)
- [https://jivasecurity.com/writeups/dolibarr-remote-code-execution-cve-2026-22666](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](https://www.vulncheck.com/advisories/dolibarr-erp-crm-authenticated-rce-via-dol-eval-standard)

## Related threats

- [Dolibarr SQL injection in localtax parameters](https://junglewise.ai/threats/cve-2026-33944-dolibarr-has-sql-injection-in-societe-class-societe-class-php-via)
- [Dolibarr path traversal in email attachment handling](https://junglewise.ai/threats/cve-2026-81730-dolibarr-path-traversal-in-email-attachment-handling)
- [Dolibarr REST API authorization bypass in document deletion](https://junglewise.ai/threats/cve-2026-81729-dolibarr-rest-api-authorization-bypass-in-document-deletion)
- [Dolibarr SQL injection in CSV/XLSX import wizard](https://junglewise.ai/threats/cve-2026-81728-dolibarr-sql-injection-in-csv-xlsx-import-wizard)
- [Dolibarr authorization bypass in clonetasks private project check](https://junglewise.ai/threats/cve-2026-77923-dolibarr-authorization-bypass-in-clonetasks-private-project-check)
