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

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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Analysis Generated
Jun 22, 2026 - 06:30 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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

CVE-2024-5710 MEDIUM POC
6.5 Jun 27

berriai/litellm version 1.34.34 is vulnerable to improper access control in its team management functionality. Rated med

Share

CVE-2026-12774 vulnerability details – vuln.today

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