Skip to main content

LiteLLM CVE-2026-12774

| EUVDEUVD-2026-38140 LOW
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-21 VulDB GHSA-h9c7-cfj6-h8j6
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 API credentials
  2. Delivery
    Send crafted MCP test request with internal target URL
  3. Exploit
    LiteLLM proxy issues server-side HTTP request to internal destination
  4. Execution
    Receive response revealing internal service data or cloud metadata
  5. Impact
    Leverage metadata to escalate privileges or pivot laterally

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

Exploitation requires the attacker to hold a valid authenticated session or API key with at least low-privilege access to the LiteLLM proxy instance (PR:L per CVSS 4.0 vector). The vulnerable endpoint is within an explicitly experimental component (_experimental/mcp_server), meaning deployments that have not enabled or exposed the MCP server proxy feature may not present this attack surface - however, because the code resides in the package and may be initialized by default in some configurations, operators cannot assume safety without confirming the endpoint is unreachable. No user interaction is required and attack complexity is low (AC:L/AT:N), meaning exploitation is straightforward once credentials are obtained. The primary limiting factors are: (1) the requirement for authenticated API access, reducing the exposed population to users or automated systems with valid credentials, and (2) the experimental/opt-in nature of the MCP component, which may not be active in all deployments. SSRF impact is further bounded by the network egress policy of the host running the proxy.

Impact

Real-world risk is moderate-to-significant despite the reported CVSS 4.0 score of 2.1, which is depressed by the E:P threat metric (proof-of-concept maturity) and low individual CIA impact ratings. The base network vector (AV:N/AC:L/AT:N/PR:L/UI:N) indicates no special attack complexity beyond valid credentials, which is a meaningful threat in environments where LiteLLM is deployed as a shared internal proxy and multiple users or service accounts have API access. SSRF vulnerabilities in AI gateway products are high-value because these servers frequently run with cloud IAM roles, sit inside private network segments, and have connectivity to internal model registries or admin APIs. The EPSS score was not provided - this is a data gap. No CISA KEV listing exists, indicating exploitation has not been confirmed as widespread, but the public PoC lowers the barrier to exploitation. The CVSS 4.0 SC:N rating (no subsequent-system impact) may understate realistic risk: SSRF by definition causes the vulnerable server to interact with other systems, and the N rating likely reflects the conservative NVD/VulDB assessment rather than a definitive architectural constraint. Defenders should treat this as a meaningful lateral-movement enabler in cloud-hosted deployments.

Exploit ScenarioDerived

An attacker with a valid low-privilege API key for a shared LiteLLM proxy deployment sends a crafted POST request to the MCP server connection testing endpoint, supplying an internal URL such as http://169.254.169.254/latest/meta-data/ or an internal admin API address as the MCP server target. The LiteLLM proxy issues an HTTP request to the attacker-specified destination and may return or log the response, allowing the attacker to enumerate cloud instance metadata, harvest IAM credentials, or map internal services. A public PoC is available at https://gist.github.com/YLChen-007/256c8ff0750e298f89b6b287c90c2981, confirming this attack path is documented and reproducible.

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 BerriAI LiteLLM versions up to 1.82.2 allows authenticated remote attackers to induce the proxy server to make arbitrary outbound HTTP requests by manipulating the MCP (Model Context Protocol) Server Connection Testing endpoint. The vulnerable function _execute_with_mcp_client in the experimental MCP server component fails to validate or restrict user-supplied connection targets, enabling internal network probing, potential access to cloud metadata services, and circumvention of network segmentation controls. A publicly available proof-of-concept exploit exists (GitHub gist by YLChen-007); no CISA KEV listing was present at time of analysis. The CVSS 4.0 reported score of 2.1 reflects threat-metric downgrade from E:P (proof-of-concept) and should not be taken as indicative of low inherent exploitability - the base network vector with low-privilege access represents a meaningful internal network exposure risk.

RemediationAI

No vendor-released patched version was independently confirmed at time of analysis - the affected version range tops out at 1.82.2 with no fix version cited in VulDB, EUVD, or NVD references. Organizations should monitor the BerriAI LiteLLM GitHub repository and official release notes for a patched release above 1.82.2. As an immediate compensating control, operators should disable or restrict access to the experimental MCP server endpoints in litellm/proxy/_experimental/mcp_server/rest_endpoints.py if MCP connection testing is not required; removing or commenting out the route registration for _execute_with_mcp_client eliminates the attack surface entirely at the cost of losing MCP connectivity testing functionality. If disabling is not feasible, restrict API access to the MCP testing endpoint via network ACLs or the LiteLLM proxy's built-in role-based access controls so that only highly trusted accounts can invoke it. Additionally, deploy an egress firewall rule blocking outbound connections from the LiteLLM proxy host to RFC-1918 ranges and cloud metadata IP addresses (e.g., 169.254.169.254, 100.64.0.0/10) to limit SSRF reach; this does not eliminate the vulnerability but meaningfully constrains exploitation impact. References: https://vuldb.com/vuln/372516, https://nvd.nist.gov/vuln/detail/CVE-2026-12774.

Affected VersionsENISA

LiteLLM 1.82.2
LiteLLM 1.82.0
LiteLLM 1.82.1

Affected Packages

euvd litellm no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

LiteLLM is a Python-based LLM proxy gateway (vendor: BerriAI) used to unify multiple AI provider APIs behind a single endpoint. The affected component is an experimental MCP (Model Context Protocol) server integration within litellm/proxy/_experimental/mcp_server/rest_endpoints.py, specifically the _execute_with_mcp_client function, which is used to test connectivity to MCP-compatible tool servers. CWE-918 (Server-Side Request Forgery) describes the root cause: the application accepts a user-controlled URL or connection parameter and uses it to initiate an outbound network connection from the server without adequately validating the destination. This class of flaw is particularly dangerous in cloud-deployed AI gateway infrastructure where the server typically has access to internal APIs, cloud provider metadata endpoints (e.g., 169.254.169.254), and adjacent microservices not exposed to the public internet. The CPE string cpe:2.3:a:berriai:litellm:*:*:*:*:*:*:*:* confirms the vulnerability applies broadly across the litellm package.

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 6.4 MEDIUM

Network SSRF requiring low-privilege auth (PR:L); scope changes as server contacts internal systems; limited C/I from internal probing, no meaningful availability impact.

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

DescriptionCVE.org

A security vulnerability has been detected in BerriAI litellm up to 1.82.2. Affected by this vulnerability is the function _execute_with_mcp_client of the file litellm/proxy/_experimental/mcp_server/rest_endpoints.py of the component MCP Server Connection Testing. The manipulation leads to server-side request forgery. Remote exploitation of the attack is possible. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Exploit
POC
Public exploit code exists
Social Media
3
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