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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| BerriAI | litellm | >= 1.81.16, < 1.83.7 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3 | 3.2.2-r7 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
BerriAI LiteLLM Proxy Pre-Auth SQL Injection Scanner
auxiliary/scanner/http/litellm_proxy_sqli
GitHub 6 repositories
-
ridhinva/litellm-sqli-scanner ★ 1 · May 22, 2026
Scanner: CVE-2026-42208 LiteLLM SQL Injection — Python scanner for BerriAI LiteLLM proxy instances
-
HAERIN-L/poc_cve-2026-42208 ★ 0 · May 30, 2026
-
rootdirective-sec/CVE-2026-42208-Lab ★ 0 · May 10, 2026
-
Zeltoc/threat-intel-brief-cve-2026-42208-litellm ★ 0 · May 10, 2026
Threat intelligence brief on CVE-2026-42208, a critical pre-auth SQL injection in BerriAI LiteLLM exploited within 36 hours of disclosure. Covers attack path, detection opportunities, and recommended…
-
ashrafzaryouh/CVE-2026-42208 ★ 0 · May 3, 2026
CVE-2026-40487
-
imjdl/CVE-2026-42208_lab ★ 0 · Apr 28, 2026
CVE-2026-42208 lab
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- LiteLLM - SQL Injection http/cves/2026/CVE-2026-42208.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | litellm | >= 1.81.16, < 1.83.7 | 1.83.7 | GHSA-r75f-5x8p-qvmc |
Advisories 2
- WID-SEC-2026-1288 LiteLLM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 25, 2026
- NCSC-2026-0137 Kwetsbaarheden verholpen in LiteLLM door BerriAI NCSC-NL (Netherlands) · May 11, 2026