PoC Monitor
← All CVEs
CVE-2026-42208published 8 May 2026 03:38 UTCData: JSON · API

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.

First public PoC 9.4 days beforebefore publication · 28 Apr 2026
Public PoCs86 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by NVD · CWE-89
CISA KEV 8 May 20261 h after publication

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

BerriAI litellm
  • >= 1.81.16, < 1.83.7

Fixed in 1.83.7

Mitigation

Upgrade litellm to 1.83.7 or later.

References

Timeline

Days relative to CVE publication
-9-6-3t=0+3+6First public PoC28 Apr 2026 · t−9.4dCVE published8 May 2026 · t = 0Added to CISA KEV8 May 2026 · t = 0

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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.

PoC characteristics

What to hunt for in your logs · from 6 PoC repos

POST /v1/chat/completions

Key headers
Authorization: Bearer invalid_token_baseline_test Authorization: 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

POST /key/generate

Key headers
Authorization: Bearer {var} Authorization: Bearer sk-lab-master-key
Body markers
"key_alias":"lab-seed-key" "max_budget" in 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/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" in application/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.

POST /v1/chat/completions
(?i)^/v1/chat/completions(?:[?#].*)?$
GET /health/liveliness
(?i)^/health/liveliness(?:[?#].*)?$
POST /key/generate
(?i)^/key/generate(?:[?#].*)?$
POST /chat/completions
(?i)^/chat/completions(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /v1/chat/completions
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;)
GET /health/liveliness
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;)
POST /key/generate
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;)
POST /chat/completions
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.

POST /v1/chat/completions
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
GET /health/liveliness
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
POST /key/generate
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
POST /chat/completions
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