LiteLLM Proxy MCP interface command injection vulnerability
Start here
On November 17, 2026, the Xianzhi community published a reproduction and source code audit of the command injection vulnerability CVE-2026-30623 in the MCP interface of LiteLLM Proxy. The author said an attacker holding a valid API Key can execute arbitrary system commands through the /mcp-rest/test/connection interface: when this interface receives a stdio-type MCP Server configuration, it does not validate command or args and passes them directly to a subprocess for execution; the attacker sets command to bash and passes a script via -c, bypassing the injection protection of list-based argument passing. Exploitation requires a valid Bearer API Key, and unauthorized requests return 401; the test-connection branch does not use the database, so the vulnerability can still be triggered when the database is offline. The author reasoned that an attacker could steal model keys, plant backdoors and move laterally, and recommended command allowlists, fine-grained API Key permissions and subprocess sandbox isolation; before a patch, the MCP feature can be disabled.
Generated by AI from reports · Updated 11 days ago
Progress timeline
- Xianzhi Community (Aliyun)CVE-2026-30623 vulnerability analysis: reproduction and source code audit of the LiteLLM Proxy MCP interface command injection vulnerability
The author audited and reproduced the command injection vulnerability CVE-2026-30623 in the LiteLLM Proxy MCP interface; an attacker holding a valid API Key can execute arbitrary system commands through the /mcp-rest/test/connection interface. When this interface receives a stdio-type MCP Server configuration, it does not validate command or args and passes them directly to a subprocess for execution; an attacker sets command to bash and passes a script via -c, bypassing the injection protection of list-based argument passing. Exploitation requires a valid Bearer API Key; unauthorized requests return 401, the test-connection branch does not use the database, and the vulnerability can still be triggered when the database is offline. The author reasons that an attacker could steal model keys, plant backdoors and move laterally. Remediation suggestions include command allowlisting, fine-grained API Key permissions and subprocess sandbox isolation; before a patch, the MCP feature can be disabled.
Related discussion
Attention trend
New sources per day
- Nov 17: 1 new sources (1 outlets, 0 accounts)
- Nov 18: 0 new sources (0 outlets, 0 accounts)
- Nov 19: 0 new sources (0 outlets, 0 accounts)
- Nov 20: 0 new sources (0 outlets, 0 accounts)
- Nov 21: 0 new sources (0 outlets, 0 accounts)
- Nov 22: 0 new sources (0 outlets, 0 accounts)
- Nov 23: 0 new sources (0 outlets, 0 accounts)
- Nov 24: 0 new sources (0 outlets, 0 accounts)
- Nov 25: 0 new sources (0 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)