9.3criticalExploited
LiteLLM: SQL injection in Proxy API key verification
- Severity
- 9.3critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 89.4% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-r75f-5x8p-qvmcPYSEC-2026-391
Description
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.81.16 to before version 1.83.7, a database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted Authorization header to any LLM API route (for example POST /chat/completions) and reach this query through the proxy's error-handling path. An attacker could read data from the proxy's database and may be able to modify it, leading to unauthorised access to the proxy and the credentials it manages. This issue has been patched in version 1.83.7.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| BerriAI litellm | >= 1.81.16, < 1.83.7 | CVE List, CISA KEV |
| lightspeed-core/lightspeed-stack-rhel9 | Not specified | CVE List |
| ansible-automation-platform-26/lightspeed-chatbot-rhel9 | Not specified | CVE List |
| rhoai/odh-llama-stack-core-rhel9 | Not specified | CVE List |
| rhoai/odh-mlflow-rhel9 | Not specified | CVE List |
| litellm (PyPI) | from 1.81.16 before 1.83.7 | GitHub Advisory Database, PyPA Advisory Database |
| litellm litellm | from 1.81.16 before 1.83.7 | NVD |
All scores
| GitHub_M | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| redhat-SADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total.
What each source says
CVE List
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.81.16 to before version 1.83.7, a database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted Authorization header to any LLM API route (for example POST /chat/completions) and reach this query through the proxy's error-handling path. An attacker could read data from the proxy's database and may be able to modify it, leading to unauthorised access to the proxy and the credentials it manages. This issue has been patched in version 1.83.7.
GitHub Advisory Database
Impact
A database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted Authorization header to any LLM API route (for example POST /chat/completions) and reach this query through the proxy's error-handling path.
An attacker could read data from the proxy's database and may be able to modify it, leading to unauthorised access to the proxy and the credentials it manages.
Patches
Fixed in 1.83.7. The caller-supplied value is now always passed to the database as a separate parameter. Upgrade to 1.83.7 or later.
Workarounds
If upgrading is not immediately possible, set disable_error_logs: true under general_settings. This removes the path through which unauthenticated input reaches the vulnerable query.
References
- Patched release:
v1.83.7-stable
Discovery Credit: Tencent YunDing Security Lab
NVD (es)
LiteLLM es un servidor proxy (AI Gateway) para llamar a las API de LLM en formato OpenAI (o nativo). Desde la versión 1.81.16 hasta antes de la versión 1.83.7, una consulta de base de datos utilizada durante las comprobaciones de claves de API del proxy mezclaba el valor de la clave proporcionado por el llamador en el texto de la consulta en lugar de pasarlo como un parámetro separado. Un atacante no autenticado podría enviar un encabezado de autorización especialmente diseñado a cualquier ruta de API de LLM (por ejemplo, POST /chat/completions) y alcanzar esta consulta a través de la ruta de manejo de errores del proxy. Un atacante podría leer datos de la base de datos del proxy y podría modificarlos, lo que llevaría a un acceso no autorizado al proxy y a las credenciales que gestiona. Este problema ha sido parcheado en la versión 1.83.7.
CISA KEV
BerriAI LiteLLM contains a SQL injection vulnerability that allows an attacker to read data from the proxy's database and potentially modify it, leading to unauthorized access to the proxy and the credentials it manages.
References
| https://github.com/BerriAI/litellm/security/advisories/GHSA-r75f-5x8p-qvmc | kev, mitigation, patch, vendor-advisory, web | |
| https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable | product, release-notes, web | |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42208 | government-resource, us-government-resource, web | |
| https://access.redhat.com/security/cve/CVE-2026-42208 | third-party-advisory, vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2463965 | issue-tracking, mitigation, third-party-advisory, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42208.json | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-42208 | advisory, kev | |
| https://github.com/BerriAI/litellm | package | |
| https://github.com/advisories/GHSA-r75f-5x8p-qvmc | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-391.yaml | web | |
| https://pypi.org/project/litellm | package, web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42208 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r75f-5x8p-qvmc changed 2026-10-05 | CC-BY-4.0 |
| NVD | CVE-2026-42208 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-391 changed 2026-07-01 | CC-BY-4.0 |
| CISA KEV | CVE-2026-42208 changed 2026-05-08 | CC0-1.0 |