CVE-2026-42271: high-severity vulnerability in BerriAI litellm
LiteLLM: Authenticated command execution via MCP stdio test endpoints
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
LiteLLM proxy server had two test endpoints that allowed authenticated users to execute arbitrary commands on the host by providing a malicious command in the MCP server configuration. Any user with a valid API key, even with low privileges, could exploit this to run code with the proxy's privileges.
CWE-77/CWE-78 command injection vulnerability in POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list endpoints (versions 1.74.2–1.83.6). Attackers with valid proxy API keys could supply arbitrary commands in the stdio transport configuration (command, args, env fields), which were executed as subprocesses without role-based access control, leading to unauthenticated code execution on the proxy host.
The full analysis of this CVE is available in Portuguese →
In the same product, most dangerous first.