Junglewise Threat Intelligence

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

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

Technologies: Dolibarr Erp\, Dolibarr Crm, Dolibarr ERP/CRM. Vendors: Dolibarr.

Executive brief

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.

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

Related threats