CVE-2026-42208
JSON

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 packageVersionsReported by
BerriAI litellm>= 1.81.16, < 1.83.7CVE List, CISA KEV
lightspeed-core/lightspeed-stack-rhel9Not specifiedCVE List
ansible-automation-platform-26/lightspeed-chatbot-rhel9Not specifiedCVE List
rhoai/odh-llama-stack-core-rhel9Not specifiedCVE List
rhoai/odh-mlflow-rhel9Not specifiedCVE List
litellm (PyPI)from 1.81.16 before 1.83.7GitHub Advisory Database, PyPA Advisory Database
litellm litellmfrom 1.81.16 before 1.83.7NVD

All scores

GitHub_M9.3critical CVSS:4.0CVSS: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-SADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS: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

CWE-89

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

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-qvmckev, mitigation, patch, vendor-advisory, web
https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stableproduct, release-notes, web
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42208government-resource, us-government-resource, web
https://access.redhat.com/security/cve/CVE-2026-42208third-party-advisory, vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2463965issue-tracking, mitigation, third-party-advisory, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42208.jsonthird-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-42208advisory, kev
https://github.com/BerriAI/litellmpackage
https://github.com/advisories/GHSA-r75f-5x8p-qvmcadvisory
https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-391.yamlweb
https://pypi.org/project/litellmpackage, web

Sources

SourceRecordLicence
CVE ListCVE-2026-42208 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-r75f-5x8p-qvmc changed 2026-10-05CC-BY-4.0
NVDCVE-2026-42208 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-391 changed 2026-07-01CC-BY-4.0
CISA KEVCVE-2026-42208 changed 2026-05-08CC0-1.0