CVE-2026-42271
LiteLLM: Authenticated command execution via MCP stdio test endpoints
Description
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.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:LPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
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.
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
1 techniqueReferences
- LiteLLM Vulnerability Chain Lets Low-Privilege Users Take Over AI Gateway Serversen·The Hacker News· PoC LiteLLM ai-ml
- Weekly Threat Intelligence: June 8 to June 14, 2026en-us·Daily CyberSecurity (securityonline.info)· Exploited Ivanti Sentry rce
- In Other News: Google Security Layoffs, AudiA6 Takedown, $400 Million Coupang Fineen-us·SecurityWeek· Roundup data-breach
- LiteLLM Flaw CVE-2026-42271 Exploited in the Wild, Chains to Unauthenticated RCEen·The Hacker News· Exploited BerriAI LiteLLM ai-ml
- CISA Active Exploit Catalog Expands with Critical Gateway Flawsen-us·Daily CyberSecurity (securityonline.info)· Exploited CISA Known Exploited Vulnerabilities (KEV) catalog entries Qilin
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