PT-2026-37185
CVE-2026-42271
·
Published
2026-04-25
·
Updated
2026-11-10
Description by
CVSS 3.1
8.8
HighMetricsAV: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
LiteLLM, a proxy server used as an AI Gateway for Large Language Model APIs, contains a flaw where two endpoints used to preview an MCP server before saving it—'POST /mcp-rest/test/connection' and 'POST /mcp-rest/test/tools/list'—accept a full server configuration in the request body. This includes the
command, args, and env fields used by the stdio transport. When a stdio configuration is provided, the endpoints spawn the supplied command as a subprocess on the proxy host with the privileges of the proxy process. Because these endpoints only require a valid proxy API key and lack role verification, any authenticated user, including those with low-privilege internal-user keys, can 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.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾