{"id":"CVE-2026-133476","state":"PUBLISHED","title":"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 Unive","description":"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, pass_crypted, api_key). MariaDB and MySQL accept a two-level qualification such as schema.alias.column, so an operand of the form dolibarr.u.pass_crypted 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 api_key one character at a time, including an administrator's. Because api_key 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 pass_temp, which stores a password in cleartext, as well as national_registration_number, salary, birth, address, personal_mobile and note_private.","publishedAt":"2026-11-19T21:27:43.257Z","updatedAt":"2026-11-19T21:27:43.257Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"mitre"},"assigner":"mitre","products":["Dolibarr Dolibarr ERP/CRM"],"affected":[{"vendor":"Dolibarr","product":"Dolibarr ERP/CRM","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"24.0.3","versionType":"semver"}],"modules":["REST API (modApi)"],"programFiles":["htdocs/core/lib/functions.lib.php"],"programRoutines":[{"name":"dolForgeSQLCriteriaCallback"}],"repo":"https://github.com/dolibarr/dolibarr"}],"references":["https://github.com/Dolibarr/dolibarr/commit/7a04d9c970e45e15d29c91e6f5a34a262c6c51c8","https://github.com/Dolibarr/dolibarr/commit/725d20884d93b46f07b66a93071d3229b870865f","https://github.com/Dolibarr/dolibarr/releases/tag/24.0.3","https://tajapps.com/advisories/TAJ-2026-002/","https://github.com/Dolibarr/dolibarr/blob/24.0.3/ChangeLog"],"weaknesses":["CWE-424"],"ingestedAt":"2026-11-19T21:34:05.892Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/133xxx/CVE-2026-133476.json","commit":"96c4897f9683bc2d8ccac59ac4cfec818f812853","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133476","state":"PUBLISHED","datePublished":"2026-11-19T21:27:43.257Z","dateUpdated":"2026-11-19T21:27:43.257Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2026-11-19T21:27:42.387Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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, pass_crypted, api_key). MariaDB and MySQL accept a two-level qualification such as schema.alias.column, so an operand of the form dolibarr.u.pass_crypted 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 api_key one character at a time, including an administrator's. Because api_key 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 pass_temp, which stores a password in cleartext, as well as national_registration_number, salary, birth, address, personal_mobile and note_private."}],"affected":[{"vendor":"Dolibarr","product":"Dolibarr ERP/CRM","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"24.0.3","versionType":"semver"}],"modules":["REST API (modApi)"],"programFiles":["htdocs/core/lib/functions.lib.php"],"programRoutines":[{"name":"dolForgeSQLCriteriaCallback"}],"repo":"https://github.com/dolibarr/dolibarr"}],"references":[{"url":"https://github.com/Dolibarr/dolibarr/commit/7a04d9c970e45e15d29c91e6f5a34a262c6c51c8","tags":["related"]},{"url":"https://github.com/Dolibarr/dolibarr/commit/725d20884d93b46f07b66a93071d3229b870865f","tags":["patch"]},{"url":"https://github.com/Dolibarr/dolibarr/releases/tag/24.0.3","tags":["release-notes"]},{"url":"https://tajapps.com/advisories/TAJ-2026-002/","tags":["third-party-advisory","technical-description"]},{"url":"https://github.com/Dolibarr/dolibarr/blob/24.0.3/ChangeLog","tags":["release-notes"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-424","description":"CWE-424 Improper Protection of Alternate Path","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2026-11-19T21:27:43.257Z"},"x_generator":{"engine":"CVE-Request-form 0.0.1"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:dolibarr:dolibarr_erp\\/crm:*:*:*:*:*:*:*:*","versionEndExcluding":"24.0.3"}]}]}]}}}}