CVE-2026-136539 and CVE-2026-136535: LiteLLM proxy admins could run code through pass-through endpoint handlers loaded from s3:// or gcs:// (fixed 1.85.0) and through MCP stdio server configs (0-day; LiteLLM disputes it, stdio is off by default from 1.104.0)
Two Zero Day Initiative reports turn an authenticated LiteLLM proxy admin into code execution as the proxy's service account. CVE-2026-136539 (ZDI-26-1084, from Pwn2Own): admin endpoints such as /config/pass_through_endpoint accept a target or custom handler from the request body, and get_instance_fn loaded s3:// or gcs:// values from remote storage and executed them as a Python module. LiteLLM's PR #27801 refuses remote URLs that don't come from the config file, and first shipped in v1.85.0. CVE-2026-136535 (ZDI-26-1031) covers MCP stdio server configurations, which run a host command: ZDI says the earlier allowlist fix was incomplete and published it as a 0-day; LiteLLM says stdio servers are admin-chosen commands by design and is not shipping a separate patch. Its mitigation is v1.104.0+, where stdio servers are disabled unless LITELLM_ENABLE_MCP_STDIO=true is set in the environment, plus a strong master key. The risk is highest where the default sk-1234 master key or a leaked admin key is in use.
What it is
CVE-2026-136539 / ZDI-26-1084 (ZDI-CAN-31433, reported 2 June 2026, credit k3vg3n): 'lack of proper validation of code before it is executed via module import' in pass_through_endpoints handling. PR #27801 (merged 14 May 2026) gates remote-URL loads on the config_file_path being present, with LITELLM_ALLOW_REMOTE_INSTANCE_FN_FROM_API=true as an explicit opt-back-in. The fix commit is in v1.85.0 and not in the 1.84.x releases.
CVE-2026-136535 / ZDI-26-1031 (ZDI-CAN-31815, reported 17 June 2026): command injection in handling of MCP stdio configurations. ZDI's timeline: the vendor first closed it as a false positive, reopened it on 29 October after ZDI showed the existing fix was incomplete, then on 17 November said no separate patch is coming and disputed that it is a vulnerability. ZDI published it as a 0-day on 18 November.
Vendor mitigation quoted by ZDI: stdio MCP servers run admin-chosen host commands and only proxy admins can create or test them; the CVE-2026-42271 allowlist is not a security control and will be removed; from v1.104.0 stdio servers are disabled unless LITELLM_ENABLE_MCP_STDIO=true is set in env (not via API, config or DB), and startup is blocked if the master key is unset, empty or sk-1234.
Both need high privileges (proxy admin). NVD published both CVEs on 24 November 2026.
How to check
- Check your LiteLLM version (pip show litellm or the proxy image tag): before 1.85.0 is exposed to CVE-2026-136539; before 1.104.0 allows stdio MCP servers by default.
- Check whether LITELLM_ENABLE_MCP_STDIO or LITELLM_ALLOW_REMOTE_INSTANCE_FN_FROM_API is set in the proxy environment.
- List pass-through endpoints and MCP servers configured through the API or UI and look for s3:// or gcs:// handler targets or stdio commands you didn't add.
- Confirm the master key is not sk-1234 or another example value, and who holds admin keys.
How to fix
- Upgrade LiteLLM to 1.104.0 or later (covers the 1.85.0 fix) and leave LITELLM_ENABLE_MCP_STDIO unset unless you need stdio MCP servers.
- Replace any default or example master key with a long random value and rotate admin keys that may have leaked.
- Treat proxy admin access as equal to shell access on the proxy host, and keep the admin UI and management routes off the public internet.
pip show litellm | grep -i ^version
env | grep -E 'LITELLM_(ENABLE_MCP_STDIO|ALLOW_REMOTE_INSTANCE_FN_FROM_API|MASTER_KEY)=' | sed 's/=.*/=<set>/' Sources
- ZDI-26-1084: LiteLLM Pass-Through Endpoint Code Injection Remote Code Execution Vulnerability ↗
- ZDI-26-1031: LiteLLM MCP Command Injection Remote Code Execution Vulnerability ↗
- BerriAI/litellm PR #27801: refuse remote-URL instance-fn loads outside config-file path ↗
- NVD: CVE-2026-136539 ↗
- NVD: CVE-2026-136535 ↗
- criticalCVE-2026-114612: LiteLLM proxy lets an internal user forge an admin token and run commands
- criticalLiteLLM 1.107.0 on PyPI and Docker was malware: a credential stealer that runs whenever Python starts
- criticalCVE-2026-37004: LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint
- criticalCVE-2026-49468: LiteLLM: Authentication Bypass via Host Header Injection