Skip to main content

BerriAI LiteLLM CVE-2026-12798

| EUVDEUVD-2026-38157 LOW
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-21 VulDB GHSA-c693-x898-5g4h
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 low-privilege LiteLLM credentials
  2. Delivery
    Send crafted spec_path to MCP OpenAPI endpoint
  3. Exploit
    Trigger SSRF in load_openapi_spec_async
  4. Execution
    Server fetches internal network resource
  5. Impact
    Extract response data (e.g., cloud metadata or internal API response)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

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

Exploitation Conditions

Authentication is required: the CVSS 4.0 vector specifies PR:L (low privilege), meaning the attacker must have at least a valid low-privilege account or API key on the LiteLLM instance. The vulnerable function load_openapi_spec_async is located in the _experimental MCP server component, meaning this attack surface is only present when the experimental MCP OpenAPI spec loader feature is active - deployments that do not use this component are not exposed. The attacker must be able to supply or influence the spec_path argument to the vulnerable function. No user interaction is required (UI:N) and attack complexity is low (AC:L), so once authenticated access is obtained, exploitation is straightforward. Exploitation is limited by: (1) the PR:L authentication requirement excluding fully unauthenticated attackers; (2) the experimental/non-default nature of the MCP component; and (3) the absence of scope change to subsequent systems per CVSS 4.0 SC:N, which bounds the SSRF impact to resources reachable from the LiteLLM host network.

Impact

The official CVSS 4.0 score is 2.1, which is very low, driven primarily by PR:L (low-privilege authentication required) and uniformly low impact metrics (VC:L/VI:L/VA:L with no subsequent-system impact: SC:N/SI:N/SA:N). The E:P modifier confirms a proof-of-concept exists, which elevates practical exploitability above theoretical. No CISA KEV listing means active in-the-wild exploitation is not confirmed. The vulnerability resides in an explicitly experimental component (_experimental directory), which may reduce its attack surface in production deployments where this feature is not enabled or exposed. Taken together, this is a real but low-priority vulnerability: the authentication barrier (PR:L) meaningfully limits the attacker pool, and the SSRF impact is bounded by the server's network position and the absence of confirmed scope change to subsequent systems. However, in cloud-hosted LiteLLM deployments with access to metadata endpoints, even a low-privilege SSRF can escalate to credential theft - defenders should evaluate their specific hosting environment. CVSS 4.0 score and SSRF nature are consistent; no conflicts detected between vector and description.

Exploit ScenarioDerived

An authenticated attacker with low-privilege API access to a LiteLLM instance submits a crafted request to the MCP OpenAPI Spec Loader, supplying a spec_path value pointing to an internal cloud metadata endpoint such as http://169.254.169.254/latest/meta-data/iam/security-credentials/. The LiteLLM server fetches the URL and the response - potentially containing IAM credentials - is returned to or observable by the attacker. A public proof-of-concept is available at https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a, confirming the attack is straightforward to reproduce.

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

Server-side request forgery in LiteLLM's experimental MCP OpenAPI Spec Loader allows authenticated remote attackers to coerce the server into issuing arbitrary HTTP requests by supplying a malicious spec_path value to the load_openapi_spec_async function. Affected versions are LiteLLM 1.82.0 through 1.82.2 as confirmed by EUVD. A public proof-of-concept exploit exists on GitHub, though the vulnerability is not in CISA KEV and the CVSS 4.0 score of 2.1 with E:P modifier reflects low-severity, authenticated exploitation with a known but apparently limited threat footprint.

RemediationAI

No vendor-released patched version has been identified at time of analysis; the vendor was contacted early per the disclosure statement, but no fix version appears in the available references. Upstream fix availability should be confirmed by monitoring the BerriAI LiteLLM GitHub repository and VulDB advisory at https://vuldb.com/vuln/372560. As an immediate compensating control, operators should disable or restrict access to the experimental MCP server component if it is not required - this eliminates the vulnerable attack surface entirely, with no functional trade-off for deployments not using MCP OpenAPI spec generation. If the feature must remain active, restrict who can invoke load_openapi_spec_async to highly trusted users only, and implement outbound HTTP egress filtering on the LiteLLM host to block requests to internal RFC-1918 addresses and cloud metadata endpoints (e.g., 169.254.169.254). Egress filtering may cause spec-loading failures for legitimate internal OpenAPI specs and should be scoped accordingly. The public POC is available at https://gist.github.com/YLChen-007/c1104c529975699ba347feedfbe02c5a and can be used to validate remediation effectiveness in a controlled environment.

Affected VersionsENISA

LiteLLM 1.82.0
LiteLLM 1.82.1
LiteLLM 1.82.2

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:2.3:a:berriai:litellm:*:*:*:*:*:*:*:*) is an open-source LLM proxy and gateway framework by BerriAI. The vulnerable code resides in litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py, within the load_openapi_spec_async function, which is part of an experimental Model Context Protocol (MCP) feature for converting OpenAPI specifications into MCP tool definitions. The function accepts a spec_path argument - intended to point to a local or remote OpenAPI spec - without sufficiently validating or restricting the target URL or path. This is classified as CWE-918 (Server-Side Request Forgery), where the server is weaponized into fetching attacker-controlled network resources, potentially exposing internal services, cloud metadata endpoints (e.g., AWS IMDSv1 at 169.254.169.254), or other non-public infrastructure that the LiteLLM host can reach.

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:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.0 MEDIUM

SSRF yields scope change (S:C) as the server reaches internal resources; PR:L reflects required authentication; C:L for potential internal data disclosure; no integrity or availability impact confirmed.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/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
Low
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 - 10:22 NVD
MEDIUM LOW
CVSS changed
Jun 21, 2026 - 10:22 NVD
5.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.org

A weakness has been identified in BerriAI litellm up to 1.82.2. Affected by this vulnerability is the function load_openapi_spec_async of the file litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py of the component MCP OpenAPI Spec Loader. This manipulation of the argument spec_path causes server-side request forgery. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 6 pypi packages depend on litellm (5 direct, 1 indirect)

Ecosystem-wide dependent count for version 1.82.2.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% 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

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

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