LiteLLM: Authenticated command execution via MCP stdio test endpoints
Exploited in the wild as a zero-day, in CISA KEV since 8 Jun 2026 (due 22 Jun 2026), with 3 public exploits. No fixed version is recorded.
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.
Briefing
Written from the sources below · deepseek-v4.1-flash
LiteLLM's MCP stdio test endpoints (POST /mcp-rest/test/connection and /mcp-rest/test/tools/list) accepted a full server configuration and spawned the supplied command on the proxy host. Any authenticated user, including low-privilege internal-user keys, could run arbitrary commands; versions 1.74.2 to before 1.83.7 are affected.
Why it mattersIt is in CISA KEV with confirmed zero-day exploitation, public exploit material and 91% EPSS, so unpatched, internet-facing gateways are high-value targets.
ActionUpgrade LiteLLM to 1.83.7 or later; if you cannot, restrict access to the MCP test endpoints and audit for spawned processes.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| BerriAI | LiteLLM | >=1.74.2 <1.83.7 |
Exploit evidence
3 public sources
Coverage
News and research mentioning this CVE
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in LiteLLM, strongest first
Embed
A live severity badge for an advisory, README or ticket