Skip to content
RCE Advisory Intermediate CVE-2026-136535

(0Day) LiteLLM MCP Command Injection Remote Code Execution Vulnerability

LiteLLM did not properly validate a user-supplied string in MCP stdio configurations before using it to run a system call. An authenticated attacker could use this to execute arbitrary code as the service account.

David Fiser Follow

Originally disclosed on Zero Day Initiative

High 7.2 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of LiteLLM. Authentication is required to exploit this vulnerability.

David Fiser and Alfredo Oliveira of TrendAI Research, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An authenticated user could execute code in the context of the service account, though the vendor says only proxy admins can create or test stdio servers and that from v1.104.0 stdio is disabled unless an environment variable is set.

What the attacker needed

Authentication to LiteLLM; ability to configure MCP stdio servers

The fix

From v1.104.0 stdio servers are disabled unless an environment variable is set, and the vendor says the allowlist will be removed; the report does not say a full fix shipped.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

LiteLLM is a tool that manages AI models, and it can start helper programs called MCP servers. The report says the program took text from a user and passed it to the operating system to run without checking it first, so someone with a login could make the server run their own commands. The vendor argues that only administrators can set these up, so it sees this as intended behaviour rather than a flaw.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.