BerriAI LiteLLM
LiteLLM has an authentication bypass via OIDC userinfo cache key collision
LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.0, when JWT authentication is enabled (enable_jwt_auth: true), the OIDC userinfo cache uses token[:20] as the cache key. JWT headers produced by the same signing algorithm generate identical first 20 characters. This configuration option is not enabled by default. Most instances are not affected. An unauthenticated attacker can craft a token whose first 20 characters match a legitimate user's cached token. On cache hit, the attacker inherits the legitimate user's identity and permissions. This affects deployments with JWT/OIDC authentication enabled. Fixed in v1.83.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.83.0
Fixed in 1.83.0
Mitigation
Upgrade litellm to 1.83.0 or later.
References
- Vendor advisory github.com/BerriAI/litellm/security/advisories…
Timeline
Days relative to CVE publicationFirst public PoC 43 days after publication; not in CISA KEV. First PoC: learner202649/CVE-2026-35030-PoC (created 19 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 not a PoC
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| learner202649/CVE-2026-35030-PoC | 19 May 2026 +43 d | 0 | PoC |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| learner202649/CVE-2026-35029-PoC | 19 May 2026 +43 d | 0 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /user/info
- Key headers
Authorization: Bearer {var}- Content-Type
application/json- Ports
- 4000, 4001, 8000
- Seen in
- 1 repo: learner202649/CVE-2026-35030-PoC
- Evidence
- learner202649/CVE-2026-35030-PoC/exploit/exploit.py:145 learner202649/CVE-2026-35030-PoC/exploit/exploit.py:163
POST /token
- Body markers
"subject"inapplication/json- Ports
- 4000, 4001, 8000
- Seen in
- 1 repo: learner202649/CVE-2026-35030-PoC
- Evidence
- learner202649/CVE-2026-35030-PoC/exploit/token_forge.py:67
POST /user/new
- Key headers
Authorization: Bearer sk-litellm-master-key- Body markers
"user_id":"admin""role":"proxy_admin""user_id":"attacker"inapplication/json- Ports
- 4000
- Seen in
- 1 repo: learner202649/CVE-2026-35030-PoC
- Evidence
- learner202649/CVE-2026-35030-PoC/README.md:81 learner202649/CVE-2026-35030-PoC/README.md:85
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/user/info(?:[?#].*)?$
(?i)^/token(?:[?#].*)?$
(?i)^/user/new(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [4000,4001,8000] (msg:"GG PoC-Monitor CVE-2026-35030 BerriAI litellm exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/user/info"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-35030; classtype:web-application-attack; sid:9696501; rev:1;)
alert http any any -> $HOME_NET [4000,4001,8000] (msg:"GG PoC-Monitor CVE-2026-35030 BerriAI litellm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/token"; http.request_body; content:"|22|subject|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-35030; classtype:web-application-attack; sid:9323922; rev:1;)
alert http any any -> $HOME_NET [4000] (msg:"GG PoC-Monitor CVE-2026-35030 BerriAI litellm exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/user/new"; http.header; content:"Authorization: Bearer sk-litellm-master-key"; nocase; http.request_body; content:"|22|user_id|22|:|22|admin|22|"; http.request_body; content:"|22|role|22|:|22|proxy_admin|22|"; http.request_body; content:"|22|user_id|22|:|22|attacker|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-35030; classtype:web-application-attack; sid:9067175; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: BerriAI litellm exploit attempt (CVE-2026-35030)
id: gg-pocmon-cve-2026-35030-9696501
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35030. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35030
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/user/info'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35030
title: BerriAI litellm exploit attempt (CVE-2026-35030)
id: gg-pocmon-cve-2026-35030-9323922
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35030. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35030
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/token'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35030
title: BerriAI litellm exploit attempt (CVE-2026-35030)
id: gg-pocmon-cve-2026-35030-9067175
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-35030. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-35030
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/user/new'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.35030