PT-2026-37185 · Litellm · Litellm
Highjaydns
·
Published
2026-04-25
·
Updated
2026-06-02
·
CVE-2026-42271
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
LiteLLM versions 1.74.2 through 1.83.6
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. This included the
command, args, and env fields used by the stdio transport. When a stdio configuration was provided, the endpoints spawned the supplied command as a subprocess on the proxy host with the privileges of the proxy process. These endpoints required only a valid proxy API key and lacked role checks, allowing any authenticated user, including those with low-privilege internal-user keys, to execute arbitrary commands on the host.Recommendations
Update to version 1.83.7.
As a temporary workaround, block the "POST /mcp-rest/test/connection" and "POST /mcp-rest/test/tools/list" endpoints at the reverse proxy or API gateway.
Fix
OS Command Injection
Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Litellm