CVE-2026-42271

ZDI-26-1031 · ZDI-CAN-31815 · published 8 May 2026 · updated 18 Nov 2026

LiteLLM: Authenticated command execution via MCP stdio test endpoints

10.0CriticalCVSS 8.7EPSS 91%CISA KEV · due 22 Jun 20263 public exploitsZero-day

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

VendorProductVersionsFixed
BerriAILiteLLM>=1.74.2 <1.83.7

Exploit evidence

3 public sources

kev

Coverage

News and research mentioning this CVE

Timeline

Every event on this vulnerability

PublishedCVE-2026-42271·
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.
7.0High2 sources
Public exploitCVE-2026-42271·
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.
10.0Critical2 sources

Related

Other vulnerabilities in LiteLLM, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-42271 severity on Zeptric[![CVE-2026-42271](https://zeptric.io/badge/cve/CVE-2026-42271.svg)](https://zeptric.io/cve/CVE-2026-42271)