BerriAI LiteLLM Discloses MCP Stdio Endpoint Command Injection Vulnerability (CVE-2026-42271)
On April 21, 2026, BerriAI published advisory GHSA-v4p8-mg3p-g94g for CVE-2026-42271 in LiteLLM (>=1.74.2, <1.83.7), where MCP preview endpoints /mcp-rest/test/connection and /mcp-rest/test/tools/list let authenticated users execute arbitrary host commands via stdio parameters.
Verification & Actions
- Inventory all enterprise AI proxy and model-routing deployments running LiteLLM versions 1.74.2 through 1.83.6.
- Audit LiteLLM /mcp-rest/test/* request logs for unexpected subprocess execution or upstream LLM API key access.
- Upgrade LiteLLM to 1.83.7 or later, run proxy containers as non-root, and isolate host and model credentials.