Skip to main content

BerriAI LiteLLM CVE-2026-12770

| EUVDEUVD-2026-38136 LOW
Improper Authorization (CWE-285)
2026-06-21 VulDB GHSA-6qr3-3g89-m4jj
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid LiteLLM API key (any role)
  2. Delivery
    Identify target key hashed token
  3. Exploit
    Send crafted POST to /key/block or /key/unblock
  4. Execution
    Authorization check absent - request executes as admin operation
  5. Impact
    Target key blocked or budget limit modified

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid authenticated LiteLLM API key with at minimum standard user privileges - the CVSS 4.0 vector confirms PR:L (low-privilege authentication required). The attacker must have network access to the LiteLLM proxy management API. Three specific privileged operations are exploitable without admin authorization: (1) blocking any API key via POST /key/block, (2) unblocking any API key via POST /key/unblock, and (3) modifying the max_budget field of any key via POST /key/update. No special configuration, non-default deployment mode, or specific platform is required - any standard LiteLLM proxy deployment on versions 1.63.0 or 1.63.1 with the management API exposed is vulnerable. The primary factor limiting exploitation is the PR:L requirement: an attacker without any valid API key credential cannot exploit this vulnerability. Legitimate single-tenant deployments where all users are fully trusted face negligible practical risk despite the technical flaw.

Impact

The official CVSS 4.0 score of 2.1 significantly underrepresents real-world operational risk for multi-tenant LiteLLM deployments. The score is depressed by the low magnitude impact metrics (VI:L/VA:L/VC:N) and PR:L, but in a shared LiteLLM gateway serving multiple teams or organizations, an authenticated attacker can selectively disable competitors' API keys (availability disruption), restore suspended keys that administrators intentionally blocked (integrity violation of policy enforcement), or manipulate budget caps to either exhaust or inflate spending limits. The CVSS 4.0 threat metric E:P confirms a proof-of-concept exists, elevating urgency despite the low base score. No EPSS score was available in the provided intelligence; no CISA KEV listing exists, indicating exploitation is not yet confirmed as widespread. Risk is concentrated in SaaS-style or multi-tenant LiteLLM deployments; single-tenant instances with a small, fully trusted user base face substantially lower risk. The PR:L prerequisite is the primary limiting factor - an unauthenticated external attacker cannot exploit this without first obtaining a valid API key.

Exploit ScenarioDerived

An authenticated LiteLLM user holding any standard (non-admin) API key identifies the hashed token of a target user's key - obtainable through normal API responses or shared deployment artifacts - and sends a crafted POST request to /key/block with the target token. Because the authorization check was absent in versions 1.63.0-1.63.1, the request succeeds and the target key is immediately blocked, denying that user API access. The publicly available PoC at https://gist.github.com/YLChen-007/993c68152b2c770d53590f1684c755d4 demonstrates this exact sequence.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

Improper authorization in BerriAI LiteLLM versions 1.63.0-1.63.1 allows any authenticated user - holding any valid API key regardless of role - to perform admin-restricted operations on other users' API keys, including blocking, unblocking, and modifying budget limits via the /key/block, /key/unblock, and /key/update endpoints. The root cause, confirmed by GitHub PR #23781, is the complete absence of access-control enforcement on these endpoints despite their admin-only documentation. A publicly available proof-of-concept exploit exists on GitHub; this vulnerability is not in the CISA KEV catalog at time of analysis.

RemediationAI

The upstream fix is available as GitHub PR #23781 (https://github.com/BerriAI/litellm/pull/23781), which adds the _check_key_admin_access() authorization guard to the /key/block, /key/unblock, and /key/update (max_budget) endpoints. A specific released patched version number has not been independently confirmed from available data - operators should monitor the BerriAI LiteLLM release feed and apply the first tagged release that incorporates PR #23781. As compensating controls prior to patching: restrict network access to the LiteLLM proxy management API to trusted administrator IP ranges using firewall or reverse-proxy ACLs (this limits exposure but may disrupt legitimate remote team-level key management workflows); alternatively, if the block/unblock functionality is not operationally required, disable those endpoints in the proxy configuration to eliminate that attack surface entirely. Budget-manipulation via /key/update cannot be blocked without disabling the broader update endpoint, which has wider operational impact.

Affected VersionsENISA

LiteLLM 1.63.0
LiteLLM 1.63.1

Affected Packages

pypi litellm no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LiteLLM (CPE: cpe:2.3:a:berriai:litellm:*:*:*:*:*:*:*:*) is an open-source LLM proxy and API gateway implemented in Python using FastAPI. It manages API keys, per-key budget limits, and team/organization access controls through a management API layer. The vulnerable component is litellm/proxy/management_endpoints/key_management_endpoints.py, specifically the /key/block, /key/unblock endpoint handlers and the _validate_update_key_data function that processes max_budget updates. CWE-285 (Improper Authorization) describes the root cause precisely: these endpoints were designed and documented as admin-only operations, but no runtime authorization check was invoked before executing the privileged action. The PR #23781 fix introduces _check_key_admin_access(), which queries the database for the target key's team membership and then verifies the calling user holds one of three elevated roles - proxy admin, team admin for the key's team, or org admin for that team's organization - before allowing the operation to proceed.

Know when Litellm gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.4 MEDIUM

Network-accessible proxy requires authenticated API key (PR:L); no confidentiality impact since keys are not exposed, only blocked or budget-modified.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jun 21, 2026 - 01:52 NVD
MEDIUM LOW
CVSS changed
Jun 21, 2026 - 01:52 NVD
5.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.org

A vulnerability was determined in BerriAI litellm up to 1.63.1. The impacted element is an unknown function of the file litellm/proxy/management_endpoints/key_management_endpoints.py of the component Admin Key Handler. This manipulation causes improper authorization. The attack can be initiated remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-42271 HIGH POC
8.7 May 08

Remote command execution in LiteLLM proxy server versions 1.74.2 through 1.83.6 allows any authenticated user to execute

CVE-2026-42208 CRITICAL POC
9.3 May 08

SQL injection in LiteLLM proxy server versions 1.81.16 through 1.83.6 allows unauthenticated remote attackers to read an

CVE-2026-59822 HIGH POC
8.8 Jul 08

Authentication bypass in LiteLLM (BerriAI) proxy/AI Gateway before 1.84.0 lets a remote unauthenticated attacker reach M

CVE-2024-2952 CRITICAL POC
9.8 Apr 10

BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. Rated critical s

CVE-2026-40217 HIGH POC
8.8 Apr 10

Remote code execution in BerriAI LiteLLM (all versions through 2026-04-08) enables authenticated attackers to execute ar

CVE-2024-4888 HIGH POC
8.1 Jun 06

BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on t

CVE-2026-93355 HIGH POC
7.6 Sep 28

Authentication bypass in the LiteLLM proxy lets any party who already holds a valid JWT issued by the configured externa

CVE-2025-0330 HIGH POC
7.5 Mar 20

In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error oc

CVE-2024-9606 HIGH POC
7.5 Mar 20

In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerabi

CVE-2024-6587 HIGH POC
7.5 Sep 13

A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. Rated high severity (CVSS

CVE-2024-5225 HIGH POC
7.2 Jun 06

An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` en

CVE-2024-4889 HIGH POC
7.2 Jun 06

A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy