All vulnerabilities

Servers and applications

CVE-2026-42271

Authenticated command execution via MCP stdio test endpoints

Actively exploited: CISA added it to its Known Exploited Vulnerabilities catalog on 8 Jun 2026.

Severity
High 8.7
Published
21 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.83.7
Exploit chance
91% in the next 30 daysHigher than 99% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Command injection (CWE-77)OS command injection (CWE-78)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-v4p8-mg3p-g94g
Sources
NVD, Project advisories (GitHub)

Description

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.

From BerriAI/litellm's security advisory.

Workarounds

If upgrading is not immediately possible, block POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list at your reverse proxy or API gateway.

Workarounds as given by BerriAI/litellm's security advisory.

Affected software

SoftwareAffected versions
LiteLLMServers and applications · cpe:a:litellm:litellm
  • From 1.74.2 before 1.83.7
LiteLLMServers and applications · github:berriai/litellm
  • From 1.74.2 before 1.83.7

About LiteLLM

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

From its GitHub repository.
Weekly downloads (PyPI)
23,483,590PyPI Stats, 15 Nov 2026
GitHub stars
63,271GitHub, 15 Nov 2026
Forks
13,287GitHub, 15 Nov 2026
Latest release
v1.109.1GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
First published on GitHub
27 Jul 2023GitHub

Known exploited

CISA name
BerriAI LiteLLM Command Injection Vulnerability
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.
Due for US agencies
22 Jun 2026
Used in ransomware
Not known

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42271
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42271
  • GitHub Advisory Database https://github.com/advisories/GHSA-v4p8-mg3p-g94g
  • github.com https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g