CVE-2026-42208: LiteLLM has SQL Injection in Proxy API key verification
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 litellmFor 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 litellmThe 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
- Patched release: `v1.83.7-stable`
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
Read for this analysis:
- https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable
- https://nvd.nist.gov/vuln/detail/CVE-2026-42208
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42208
- https://access.redhat.com/security/cve/CVE-2026-42208
- https://bugzilla.redhat.com/show_bug.cgi?id=2463965
- https://github.com/BerriAI/litellm
- https://github.com/advisories/GHSA-r75f-5x8p-qvmc
- https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-391.yaml
- https://pypi.org/project/litellm
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 entriesCVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
high9.9Oct 27, 2026GHSA-g5ff-637f-6q2m
LiteLLM: internal_user_viewer arbitrary local file read via `vertex_ai_credentials`
high8.1Oct 27, 2026GHSA-hhww-mrg2-969h
LiteLLM vulnerable to reflected XSS in /sso/debug/callback
medium6.8Oct 27, 2026CVE-2026-84377
LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters
medium6.5Sep 30, 2026CVE-2026-59823
LiteLLM Proxy has server-side request forgery via the `user_config` request parameter
medium5.3Sep 17, 2026CVE-2026-37004
LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
critical9.8Aug 27, 2026
