Skip to content
HighVulnerability

GHSA-v4p8-mg3p-g94g: LiteLLM: Authenticated command execution via MCP stdio test endpoints

Published
Record updated
View JSON
Affected
  • litellm >= 1.74.2, < 1.83.7
Fixed in
1.83.7
  • released April 13, 2026, 12 days before disclosure

Summary

LiteLLM's two MCP preview endpoints, POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list, accepted full server configurations including command, args and env for the stdio transport. Calling them with a stdio configuration spawned the supplied command as a subprocess on the proxy host with the proxy process's privileges. Because the endpoints checked only for a valid proxy API key and no role, any authenticated user, including low-privilege internal-user keys, could run arbitrary commands on the host.

Mitigation

Fixed in 1.83.7. Both test endpoints now require the PROXY_ADMIN role. If upgrading is not immediately possible, block POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list at the reverse proxy or API gateway.