Vulnerability  ·  2026-11-26

LiteLLM MCP stdio configuration command injection leads to remote code execution

VulnerabilityMedium impactGlobalCVE-2026-136535
ZDI published CVE-2026-136535 (ZDI-26-1031) as a coordinated 0-day on 2026-11-24 after the vendor closed the report as a false positive and only reopened it late. The flaw is a lack of validation of a user-supplied string before executing a system call in MCP stdio config handling, enabling code execution in the service account context. ZDI notes the CVE-2026-42271 allowlist is not a security control and will be removed.
LiteLLM is a widely-deployed LLM gateway/proxy in front of many model backends; because MCP stdio servers run admin-chosen host commands, a privileged attacker who can influence a server's stdio config reaches code execution on the gateway host, and the gateway's own credentials (LLM API keys, backend access) are at stake.
A user-supplied string in an MCP stdio configuration is not validated before being used to execute a system call, so a crafted stdio configuration runs arbitrary commands in the context of the LiteLLM service account. Authentication is required.
LiteLLM (MCP stdio config handling); mitigation targets v1.104.0+ with LITELLM_ENABLE_MCP_STDIO unset
Upgrade to LiteLLM v1.104.0+ and leave LITELLM_ENABLE_MCP_STDIO unset to disable stdio servers; replace any default/example master key (v1.104.0+ blocks startup if unset/empty/sk-1234).
ZDI-26-1031 advisoryNVD CVE-2026-136535
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →