CVE-2026-133476: High severity vulnerability
In Dolibarr before 24.0.3, dolForgeSQLCriteriaCallback() in htdocs/core/lib/functions.lib.php allows account takeover because it strips only a single table-name prefix from a Universal Search Filter (sqlfilters) operand before checking it against the forbidden-field denylist (pass, passcrypted, apikey). MariaDB and MySQL accept a two-level qualification such as schema.alias.column, so an operand of the form dolibarr.u.passcrypted survives the check and is emitted into the WHERE clause. A remote authenticated user holding only the holiday read and readall permissions, which confer no user-management or administrative access, can use the resulting boolean oracle at GET /api/index.php/holidays to recover any user's bcrypt password hash and apikey one character at a time, including an administrator's. Because apikey is accepted directly by the REST API as a bearer credential, this yields full administrative control of the application. This bypasses the fix for CVE-2026-89012, which added only a strtolower() call and did not address prefix depth. The same denylist also omits passtemp, which stores a password in cleartext, as well as nationalregistrationnumber, salary, birth, address, personalmobile and noteprivate.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 24.0.3
Event History
Frequently Asked Questions
Who can exploit this issue?
A remote authenticated user with only the holiday read and readall permissions can exploit it. Those permissions do not require user-management or administrative access.
Which endpoint is involved, and what can an attacker obtain?
The boolean oracle is reachable through GET /api/index.php/holidays using a Universal Search Filter (sqlfilters). An attacker can recover bcrypt password hashes and API keys character by character, including those of an administrator.
How does this lead to administrative control?
An administrator's API key can be recovered through the oracle. Because the REST API accepts an API key directly as a bearer credential, that key provides full administrative control of the application.
Are sensitive fields beyond password hashes and API keys exposed?
Yes. The denylist also omits pass_temp, which stores a password in cleartext, along with national_registration_number, salary, and birth-related data.
What version includes the referenced fix?
The issue affects Dolibarr before 24.0.3. The referenced release information identifies 24.0.3 as the fixed version.