# CVE-2026-133476: In Dolibarr before 24.0.3, dolForgeSQLCriteriaCallback() in htdocs/core/lib/functions.lib.php allows account takeover because it strips only


- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 19 Nov 2026
- **Updated:** 20 Nov 2026
- **Also known as:** GHSA-6m2v-gxrq-q72v

## What is CVE-2026-133476?

CVE-2026-133476 is a high-severity vulnerability in Dolibarr ERP/CRM, published on 19 Nov 2026. 

### Official 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.

Weakness: CWE-424 (Improper Protection of Alternate Path)

## Which versions are affected by CVE-2026-133476?


## How do I fix CVE-2026-133476?

Upgrade Dolibarr ERP/CRM to 24.0.3 or later. The advisory says that version fixes it.

## Is CVE-2026-133476 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-133476 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-133476 and fix it if it is affected.

What it is: CVE-2026-133476 is a high-severity vulnerability in Dolibarr ERP/CRM, published on 19 Nov 2026. 
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-133476 exists.

Affected product: Dolibarr ERP/CRM. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-133476/ (Markdown: https://insights.sbomify.com/CVE-2026-133476/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-133476
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-133476
- OSV: https://osv.dev/vulnerability/CVE-2026-133476

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-133476/
Summaries are generated and may contain mistakes; the official description above is the record.
