BerriAI LiteLLM
LiteLLM: SQL injection in Proxy API key verification
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.81.16, < 1.83.7
Fixed in 1.83.7
Mitigation
Upgrade litellm to 1.83.7 or later.
References
- Vendor advisory github.com/BerriAI/litellm/security/advisories…
- Release notes github.com/BerriAI/litellm/releases/tag/v1.83.…
Timeline
Days relative to CVE publicationFirst public PoC 9.4 days before publication; added to CISA KEV 0 h after publication. First PoC: imjdl/CVE-2026-42208_lab (created 28 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.6 PoCs · 3 pending
PoCs 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| imjdl/CVE-2026-42208_lab | 28 Apr 2026 −9.4 d | 0 | PoC |
| 0xBlackash/CVE-2026-42208 | 3 May 2026 −4.7 d | 0 | PoC |
| 0xredash/CVE-2026-42208 | 3 May 2026 −4.7 d | 0 | PoC |
| ashrafzaryouh/CVE-2026-42208 | 3 May 2026 −4.7 d | 0 | PoC |
| HAERIN-L/poc_cve-2026-42208 | 30 May 2026 +22 d | 0 | PoC |
| wangp0tato/poc_cve-2026-42208 | 30 May 2026 +22 d | 0 | PoC |
Pending 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Zeltoc/threat-intel-brief-cve-2026-42208-litellm | 10 May 2026 +1.9 d | 0 | Pending · mkdir /quarantine/Zeltoc__threat-intel-brief-cve-2026-42208-litellm-897172d314e1: permission denied |
| rootdirective-sec/CVE-2026-42208-Lab | 10 May 2026 +2.4 d | 0 | Pending · mkdir /quarantine/rootdirective-sec__CVE-2026-42208-Lab-0cc81e4a79b4: permission denied |
| ridhinva/litellm-sqli-scanner | 22 May 2026 +15 d | 1 | Pending · mkdir /quarantine/ridhinva__litellm-sqli-scanner-ae95a9ba2678: permission denied |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit auxiliary: BerriAI LiteLLM Proxy Pre-Auth SQL Injection Scanner (auxiliary/scanner/http/litellm_proxy_sqli) | 14 Jun 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: LiteLLM - SQL Injection | 30 May 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 6 PoC reposPOST /v1/chat/completions
- Key headers
Authorization: Bearer invalid_token_baseline_testAuthorization: Bearer ' OR (SELECT pg_sleep(6)) IS NOT NULL --Authorization: Bearer {var}- Content-Type
application/json- Ports
- 8010, 8011
- Seen in
- 2 repos: HAERIN-L/poc_cve-2026-42208, wangp0tato/poc_cve-2026-42208
- Evidence
- HAERIN-L/poc_cve-2026-42208/nuclei/CVE-2026-42208.yaml:37 HAERIN-L/poc_cve-2026-42208/scripts/02-exploit.sh:30 HAERIN-L/poc_cve-2026-42208/scripts/02-exploit.sh:40 wangp0tato/poc_cve-2026-42208/nuclei/CVE-2026-42208.yaml:37 wangp0tato/poc_cve-2026-42208/scripts/02-exploit.sh:30 wangp0tato/poc_cve-2026-42208/scripts/02-exploit.sh:40
GET /health/liveliness
- Ports
- 8010, 8011
- Seen in
- 2 repos: HAERIN-L/poc_cve-2026-42208, wangp0tato/poc_cve-2026-42208
- Evidence
- HAERIN-L/poc_cve-2026-42208/scripts/01-setup.sh:21 wangp0tato/poc_cve-2026-42208/scripts/01-setup.sh:21
POST /key/generate
- Key headers
Authorization: Bearer {var}Authorization: Bearer sk-lab-master-key- Body markers
"key_alias":"lab-seed-key""max_budget"inapplication/json- Ports
- 8010, 8011
- Seen in
- 2 repos: HAERIN-L/poc_cve-2026-42208, wangp0tato/poc_cve-2026-42208
- Evidence
- HAERIN-L/poc_cve-2026-42208/scripts/01-setup.sh:48 wangp0tato/poc_cve-2026-42208/scripts/01-setup.sh:48
POST /chat/completions
- Key headers
Authorization: Bearer {var}- Body markers
"model":"gpt-3.5-turbo""messages""max_tokens"inapplication/json- Ports
- 4000
- Seen in
- 1 repo: imjdl/CVE-2026-42208_lab
- Evidence
- imjdl/CVE-2026-42208_lab/poc_litellm_sqli.py:42
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/v1/chat/completions(?:[?#].*)?$
(?i)^/health/liveliness(?:[?#].*)?$
(?i)^/key/generate(?:[?#].*)?$
(?i)^/chat/completions(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8010,8011] (msg:"GG PoC-Monitor CVE-2026-42208 BerriAI litellm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/v1/chat/completions"; http.header; content:"Authorization: Bearer invalid_token_baseline_test"; nocase; http.header; content:"Authorization: Bearer ' OR (SELECT pg_sleep(6)) IS NOT NULL --"; nocase; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-42208; classtype:web-application-attack; sid:9082296; rev:1;)
alert http any any -> $HOME_NET [8010,8011] (msg:"GG PoC-Monitor CVE-2026-42208 BerriAI litellm exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/health/liveliness"; reference:url,poc.griffinguard.io/cve/CVE-2026-42208; classtype:web-application-attack; sid:9680265; rev:1;)
alert http any any -> $HOME_NET [8010,8011] (msg:"GG PoC-Monitor CVE-2026-42208 BerriAI litellm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/key/generate"; http.header; content:"Authorization: Bearer "; nocase; http.header; content:"Authorization: Bearer sk-lab-master-key"; nocase; http.request_body; content:"|22|key_alias|22|:|22|lab-seed-key|22|"; http.request_body; content:"|22|max_budget|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-42208; classtype:web-application-attack; sid:9363895; rev:1;)
alert http any any -> $HOME_NET [4000] (msg:"GG PoC-Monitor CVE-2026-42208 BerriAI litellm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/chat/completions"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|model|22|:|22|gpt-3.5-turbo|22|"; http.request_body; content:"|22|messages|22|"; http.request_body; content:"|22|max_tokens|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-42208; classtype:web-application-attack; sid:9236842; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: BerriAI litellm exploit attempt (CVE-2026-42208)
id: gg-pocmon-cve-2026-42208-9082296
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42208. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42208
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/v1/chat/completions'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42208
title: BerriAI litellm exploit attempt (CVE-2026-42208)
id: gg-pocmon-cve-2026-42208-9680265
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42208. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42208
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/health/liveliness'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42208
title: BerriAI litellm exploit attempt (CVE-2026-42208)
id: gg-pocmon-cve-2026-42208-9363895
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42208. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42208
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/key/generate'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42208
title: BerriAI litellm exploit attempt (CVE-2026-42208)
id: gg-pocmon-cve-2026-42208-9236842
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42208. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42208
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/chat/completions'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42208