Dolibarr ERP and CRM Authenticated Remote Code Execution Vulnerability via Eval Injection in User Extrafields

Vulnerability

A remote code execution vulnerability has been identified in Dolibarr ERP and CRM versions through 22.0.2. This vulnerability arises from the user extrafields feature, where input from the 'computed value' field is sent to PHP's eval() function without proper sanitization. As a result, authenticated administrators can execute arbitrary PHP code on the server. The vulnerability is present in the file 'functions.lib.php' within the core library.

Impact

Exploitation of this vulnerability allows authenticated administrators to execute arbitrary PHP code on the server, with potential access to the file system, database, and network. This could lead to unauthorized access to sensitive information, such as database credentials and application secrets, and the creation of persistent web shells.

Reproduction

To reproduce this vulnerability, an authenticated administrator must create or edit an extrafield with 'Computed value' enabled. Malicious payloads can be injected into the 'computed value' field. Once the extrafield is saved, the injected payload is executed when the user creation page is accessed.

Added: May 8, 2026, 9:58 PM
Updated: May 8, 2026, 9:58 PM

Vulnerability Rating

Custom Algorithm
spread
5.0
impact
7.5
exploitability
5.5
remediation
0.0
relevance
7.8
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.