Vulnerability record · CVE-2026-42208 · published 8 May 2026
CVE-2026-42208: LiteLLM proxy SQL injection in API key check
Litellm · Litellm
LiteLLM versions 1.81.16 to before 1.83.7 build a database query for proxy API key checks by concatenating the caller-supplied key into the query text rather than binding it as a parameter. An unauthenticated attacker can reach that query through the proxy's error-handling path by sending a crafted Authorization header to any LLM API route, such as POST /chat/completions. Because the proxy stores and manages upstream LLM credentials, a successful injection puts both the database and those credentials at risk.
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.
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:
Automated analysis
critical priorityUnauthenticated, network-reachable SQL injection with high confidentiality and integrity impact, a CVSS 4.0 score of 9.3, KEV listing and a very high EPSS probability.
What it is
LiteLLM versions 1.81.16 to before 1.83.7 build a database query for proxy API key checks by concatenating the caller-supplied key into the query text rather than binding it as a parameter. An unauthenticated attacker can reach that query through the proxy's error-handling path by sending a crafted Authorization header to any LLM API route, such as POST /chat/completions. Because the proxy stores and manages upstream LLM credentials, a successful injection puts both the database and those credentials at risk.
Impact
An attacker can read data from the proxy's database and may be able to modify it, gaining unauthorised access to the proxy and the credentials it manages. This can expose upstream LLM API keys and other secrets held by the gateway.
Attack surface
Reachable over the network with no authentication and no user interaction: a crafted Authorization header sent to any LLM API route (for example POST /chat/completions) reaches the vulnerable query via the proxy's error-handling path. The CVSS 4.0 vector confirms AV:N, AC:L, PR:N and UI:N.
Exploitation
CVE-2026-42208 was added to CISA KEV on 2026-05-08 with a 2026-05-11 remediation due date, indicating known exploitation; EPSS gives a 30-day probability of 0.8942 (99.776th percentile). No ransomware campaign use is documented.
What to do
- Upgrade LiteLLM to version 1.83.7 or later, which contains the patch.
- If immediate upgrade is not possible, restrict network access to the LiteLLM proxy so only trusted clients can reach LLM API routes.
- Rotate all upstream LLM API keys and other credentials managed by the proxy, since database read and possible write access could have exposed them.
- Review proxy database contents and access logs for signs of tampering or unexpected reads.
- Follow CISA KEV required action and applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Detection
- Search proxy and web logs for Authorization headers containing SQL metacharacters (quotes, comment sequences, UNION, stacked statements) sent to LLM API routes such as /chat/completions.
- Monitor for requests that trigger the proxy's error-handling path on API key checks, especially repeated or malformed Authorization values from a single source.
- Alert on database queries or errors originating from the proxy that contain caller-supplied key text rather than bound parameters.
- Audit proxy database and credential store for unexpected reads, modifications, or new entries that do not match normal key provisioning.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2026-42208 to the Known Exploited Vulnerabilities catalog on 8 May 2026 as "BerriAI LiteLLM SQL Injection Vulnerability". Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Federal deadline 11 May 2026.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable | ProductRelease Notes |
| https://github.com/BerriAI/litellm/security/advisories/GHSA-r75f-5x8p-qvmc | MitigationPatchVendor Advisory |
| https://access.redhat.com/security/cve/CVE-2026-42208 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2463965 | MitigationThird Party Advisory |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42208.json | Third Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42208 | US Government Resource |
Track CVE-2026-42208 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2026-42208), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.