Skip to content

This vulnerability is being actively exploited in the wild, according to the CISA Known Exploited Vulnerabilities catalog. CISA added it on .

CriticalVulnerabilityLLM-specific

CVE-2026-42271: LiteLLM command execution through MCP test endpoints

Identifier
CVE-2026-42271
Published
Record updated
View JSON
Affected
  • litellm >= 1.74.2, < 1.83.7
Fixed in
1.83.7
  • released April 13, 2026, 25 days before disclosure
EPSS
91.4%

Summary

LiteLLM versions from 1.74.2 up to, but not including, 1.83.7 expose two endpoints, POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list, that accept a full MCP server configuration including the stdio transport's command, args and env fields. Any holder of a valid proxy API key, including low-privilege internal-user keys, can make these endpoints spawn an arbitrary command as a subprocess on the proxy host with the proxy process's privileges, because no role check gates them.

Mitigation

Fixed in 1.83.7.