On this page
A researcher found that an admin of a LiteLLM proxy can run commands on the server the proxy runs on, by writing them into an MCP server entry. LiteLLM is the gateway a lot of teams put in front of their AI models, and it holds the provider keys for those models. The flaw got a CVE, CVE-2026-136535, and a 7.2 score. LiteLLM's team says it is not a vulnerability at all, because admins are supposed to be able to do this. Whether that answer holds depends on how your proxy is shared.
How to fix
Upgrade to 1.104.0 or later, and leave the stdio switch off:
pip install -U "litellm>=1.104.0"
From 1.104.0, LiteLLM does not run MCP stdio servers at all unless LITELLM_ENABLE_MCP_STDIO=true is set in the server's own environment. It cannot be turned on through the API, a config file, or the database. If you set that flag on purpose because you use stdio MCP servers, know that every proxy admin can then run host commands through an MCP entry, and treat admin accounts that way.
While you are there, replace the master key if it is still a default or example value. From 1.104.0 the proxy refuses to start when the master key is unset, empty, or sk-1234. Older versions start anyway.
What the flaw is
LiteLLM lets an admin register an MCP server that runs locally, over stdio. A stdio server is a command the proxy starts on its own host. The CVE record, from TrendAI's Zero Day Initiative (ZDI-26-1031), says the string an admin supplies was not checked before LiteLLM used it to run a system call, so an admin could get arbitrary code running in the context of the proxy's service account. The record lists version 1.88.0, and the weakness class is OS command injection (CWE-78). Authentication is required, and the score's privileges line says high: this is an admin-only path.
Who is not in scope
Anyone who only calls the proxy with an ordinary API key cannot touch this. End users of an app built on LiteLLM cannot either. If your team never registered a stdio MCP server, there is no command entry to abuse. And if you are on 1.104.0 or later and nobody set LITELLM_ENABLE_MCP_STDIO in the server environment, stdio servers are off and the path is closed.
One check to run now
On the proxy host, run:
pip show litellm
env | grep LITELLM_ENABLE_MCP_STDIO
If the version is below 1.104.0, upgrade. If the grep prints the variable set to true, stdio is on: every admin of that proxy has host command access, whether you meant to give it or not. Then look at who holds admin and master keys, and confirm the master key is not a sample value from a tutorial.
What this is not
This is not an unauthenticated bug, and nobody on the internet can use it against your proxy. It is not a flaw in MCP itself. It is also not a normal patch story: there is no fixed release that removes the behaviour, because the vendor's position is that admin-chosen commands are the feature. The 1.104.0 change narrows who can switch the feature on. It does not change what happens once it is on.
Why the dispute matters
The timeline in the ZDI advisory is worth reading. The report went to the vendor in June 2026. In September the vendor closed it as a false positive. ZDI pushed back in October, saying the existing fix was incomplete, and the vendor reopened it. In mid November the vendor said a fix and an advisory were coming, then said no separate patch was coming and that the report does not describe a vulnerability. ZDI published it as a zero-day on November 18.
For a proxy that one team runs for itself, the vendor's answer is mostly fair. The admin and the server owner are the same people, and an admin who wants to run a command can usually do it another way. Plenty of LiteLLM proxies are not run that way, though. Platform teams run one proxy for many product teams. Agencies run one for several clients. In those setups, "proxy admin" is a job about models, budgets, and keys. It was never supposed to include a shell on the host, and the host holds every team's provider keys. A config entry that quietly grants it crosses a line the org chart did not draw.
The strongest sign that the boundary is real is the fix itself. Moving the switch into the server environment, where only someone with host access can set it, is an admission that an API-level admin and a host operator are two different levels of trust. If they were the same, the switch could have stayed in the API.
HOL has covered LiteLLM twice recently for unrelated flaws: a guardrail sandbox escape that reached CISA's exploited list (CVE-2026-40217) and an Enterprise master key leak. This one is smaller than both. It still matters on any proxy more than one team trusts, and the check above takes two commands.
If you run agents against shared infrastructure, HOL Guard scans the setup for exposed keys and risky tool wiring (free).
Is CVE-2026-136535 a real vulnerability if the vendor disputes it?
For a single-team proxy, treat it as a design warning and upgrade anyway. For a shared proxy, treat it as a real privilege problem: before 1.104.0, a proxy admin could run host commands through an MCP stdio entry, as the proxy's service account, on the host that stores every team's provider keys. The fix is the upgrade plus leaving LITELLM_ENABLE_MCP_STDIO unset, or setting it only where every admin is also trusted with the host.
Sources
- Zero Day Initiative advisory ZDI-26-1031: zerodayinitiative.com/advisories/ZDI-26-1031
- NVD entry for CVE-2026-136535: nvd.nist.gov/vuln/detail/CVE-2026-136535
- HOL coverage of CVE-2026-40217: hol.org/blog/cve-2026-40217-litellm-guardrail-sandbox-escape-cisa-kev
- HOL coverage of the LiteLLM 1.107.0 supply chain compromise: hol.org/blog/litellm-1-107-0-supply-chain-compromise-credential-stealer
- Guard CVE index: hol.org/guard/security/cves