LiteLLM CVE-2026-42271: command injection via MCP endpoints, actively exploited
> TL;DR: LiteLLM 1.74.2 through 1.83.6 lets any authenticated proxy user execute arbitrary commands on the server via two MCP test endpoints. CVSS 8.8, active exploitation confirmed by CISA on June 8, 2026. Fix: 1.83.7.
Why this concerns you
LiteLLM has become the standard plumbing for AI features in SaaS products: a single proxy that routes your calls to OpenAI, Anthropic, Mistral or self-hosted models, with key, quota and cost management. If your product added an AI assistant, a chat feature or LLM-based CV parsing in the last two years, there's a real chance a LiteLLM proxy is running somewhere in your infrastructure — sometimes installed by a contractor, sometimes inherited from a template.
It's exactly this kind of "invisible" building block that makes the best targets.
The flaw in two sentences
LiteLLM exposes endpoints to preview an MCP server before saving it: POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list. These endpoints accepted a full server configuration in the request body — including the command, args and env fields used by the stdio transport.
In other words: you send a request with "command": "bash" and the arguments of your choice, and the proxy executes your command with its own privileges. No exotic deserialization, no complex exploit chain — the endpoint does exactly what it's told.
"Authenticated", so not a big deal?
Exploitation requires a proxy API key. Many teams stop at that word and file the flaw as minor. That's a misreading:
.env files, Git histories and CI configurations;CISA added this CVE to its KEV catalog on June 8, 2026: it is being exploited in the wild, not in theory.
What to do, in order
/mcp-rest/test/* endpoints in your logs.The lesson beyond LiteLLM
MCP surfaces are multiplying in AI products, and they arrive with a dangerous pattern: endpoints that accept *executable configurations* (command, arguments, environment) rather than data. Every time a request field ends up in a spawn(), you have an RCE candidate.
If your SaaS wired up AI features quickly — assistant, RAG, document parsing — auditing that surface has become as urgent as auditing your classic APIs. Our First Review covers exposed AI and MCP endpoints: verdict in 48h.
Building HR, payroll, or recruiting software? CleanIssue performs security audits for HR SaaS in real-world conditions, no source code access needed. For a first read of your exposure, start with an external review of your application.
Related articles
Three adjacent analyses to keep exploring the same attack surface.
Microsoft IKE CVE-2026-33824: When an Autonomous AI Drives the Exploitation Campaign
CVE-2026-33824 (CVSS 9.8), a double-free flaw in Microsoft's IKE service, was exploited as part of a hacking campaign driven by the DeepSeek AI model via the Hermes Agent framework, targeting over 460 organizations largely autonomously.
GitLab CVE-2026-19478: Unauthenticated GraphQL Injection Exploited Within 48 Hours
CVE-2026-19478 (CVSS 9.4) lets an attacker with no credentials modify or delete public GitLab projects through a poorly validated GraphQL directive. Exploited in the wild within 48 hours of disclosure.
SharePoint CVE-2026-58644: a critical RCE zero-day added to the CISA KEV catalog
A deserialization flaw (CVSS 9.8) in Microsoft SharePoint Server lets an attacker authenticated as Site Owner execute arbitrary code remotely. Actively exploited as a zero-day, added to the CISA KEV catalog on July 16, 2026 with a July 19 remediation deadline.
Sources
Related services
If this topic maps to a real risk in your stack, these are the most relevant CleanIssue audits.