LiteLLM: SQL injection in Proxy API key verification
Exploited in the wild, in CISA KEV since 8 May 2026 (due 11 May 2026), with 2 public exploits. No fixed version is recorded.
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.
Briefing
Written from the sources below · deepseek-v4.1-flash
LiteLLM versions 1.81.16 to before 1.83.7 have a SQL injection in proxy API key verification, where the caller-supplied key is mixed into query text. Unauthenticated attackers can exploit this via a crafted Authorization header on LLM API routes, reading and possibly modifying the proxy database.
Why it mattersExploitation is confirmed and it is in CISA KEV with public exploit material and 89% EPSS, so exposed proxies face near-term compromise.
ActionUpgrade LiteLLM to 1.83.7 or later immediately; if unable, remove internet exposure and rotate proxy-managed credentials.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| BerriAI | LiteLLM | >=1.81.16 <1.83.7 |
Exploit evidence
2 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in LiteLLM, strongest first
Embed
A live severity badge for an advisory, README or ticket