CVE Tools
Home/Vulnerability/CVE-2026-42271

CVE-2026-42271

LiteLLM: Authenticated command execution via MCP stdio test endpoints

Published: May 8, 2026Updated: Jun 8, 2026 Sources: CVE List NVD
8.8CVSS
HIGH

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.

EPSS Score
4.1%
Top 11.2%
CISA KEV
Active Exploitation
Since Jun 8, 2026
Exploits
No Known Exploits
Remediation
Workaround Only

CVSS Vector Breakdown

AV:NAC:LPR:LUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:LPrivileges Required
Low
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

litellm
BerriAI
litellm
litellm

Attack Graph

Products CVE Techniques Tactics

Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.

Exploitability

CISA Known Exploited Vulnerability
Added to KEV:Jun 8, 2026
Remediation due:Jun 22, 2026

Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Workaround Available

Nuclei Scanner Templates

1 Nuclei template available for automated vulnerability detection.

Templates:1
  • Ready-to-use scanner templates
  • Verified detection rules
  • Direct integration with Nuclei
View Templates — Free

MITRE ATT&CK

1 technique
Execution
View detailed technique mapping

References

Timeline

Published
May 8, 2026
Added to CISA KEV
Jun 8, 2026
Last Updated
Jun 8, 2026
1

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-42271 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
AI-powered analysis
Plain-language impact assessment and exploitation scenario
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows