NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · LiteLLM

CVE-2026-42208: LiteLLM has SQL Injection in Proxy API key verification

criticalCVSS 4.0 9.3 · 3.1 9.8ExploitedGHSA-r75f-5x8p-qvmc

LiteLLM proxy versions 1.81.16 up to 1.83.7 are open to SQL injection through the Authorization header. An unauthenticated request to any LLM route such as POST /chat/completions can read, and possibly change, the proxy's database, including the credentials it manages. CISA lists it as exploited. Upgrade to 1.83.7.

Published Apr 24, 2026 · Updated Oct 5, 2026 · Analysis Oct 27, 2026

What an attacker can do

During proxy API key checks, a database query put the caller-supplied key into the query text rather than passing it as a parameter. A crafted Authorization header reaches that query through the proxy's error-handling path, so no valid key is needed. Any LLM API route works as the entry point.

The LiteLLM proxy database stores virtual API keys, team and user records, and provider credentials for the upstream models. An attacker who reads it can steal those keys and call the model providers on your account, or take over the proxy with an admin key. The advisory says modification may also be possible. The CVSS vector rates confidentiality, integrity and availability as high, with network access and no privileges.

CISA added this to its Known Exploited Vulnerabilities catalog on 2026-05-08, and EPSS is very high (about 0.89). Any internet-reachable proxy running an affected version should be treated as a target.

Who is affected

Affected: litellm from 1.81.16 up to but not including 1.83.7, running as a proxy with a database. Check:

pip show litellm

For Docker, check the image tag. The risk is highest when the proxy port is reachable from the internet or from untrusted networks.

litellm

Ecosystem
PyPI
Affected
>= 1.81.16, < 1.83.7
Fixed in
1.83.7
Check
pip show litellm

How to fix it

Upgrade to litellm 1.83.7 or later (release v1.83.7-stable):

pip install --upgrade litellm

The caller-supplied value is now always passed to the database as a separate parameter. If you cannot upgrade right away, set disable_error_logs: true under general_settings. The advisory says this removes the path by which unauthenticated input reaches the query.

CISA's required action: apply mitigations per vendor instructions, follow BOD 22-01 guidance for cloud services, or discontinue use if mitigations are unavailable. The due date was 2026-05-11 and binds US federal agencies. After patching, rotate the master key, virtual keys and provider credentials stored in the proxy if it was exposed.

CISA 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.

How to tell if you were hit

Look in proxy and gateway logs for requests to LLM routes such as /chat/completions whose Authorization header holds SQL syntax: quotes, UNION, SELECT, comment markers or very long values. Check database logs for unusual queries from the proxy and for changes to key, user or credential tables. Watch provider billing and usage for calls you did not make.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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

Questions

Is CVE-2026-42208 exploited in the wild?

Yes. CISA added it to the Known Exploited Vulnerabilities catalog on 2026-05-08 with a due date of 2026-05-11.

Does it need authentication?

No. An unauthenticated attacker can send a crafted Authorization header to any LLM API route.

What is the workaround if I cannot upgrade?

Set disable_error_logs: true under general_settings. The advisory says this removes the path by which unauthenticated input reaches the vulnerable query.

Which versions are affected?

litellm 1.81.16 up to but not including 1.83.7. Version 1.83.7 is the fix.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More LiteLLM vulnerabilities

All LiteLLM entries