# CISA adds LiteLLM guardrail sandbox escape to KEV, and it starts with a proxy-admin key

Source: https://startwithidentity.com/blog/2026-11-18-cisa-adds-litellm-guardrail-sandbox-escape-to-kev-and-it-starts-with-a-proxy-admin-key/
Last updated: 2026-11-18
License: content by Start with Identity. Cite the source URL.

---

CISA added [CVE-2026-40217](https://startwithidentity.com/cves/cve-2026-40217/) in the LiteLLM AI gateway to its [Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217) on November 18, with a December 2 deadline for federal agencies. LiteLLM's [advisory](https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p), first published in May, explains that `POST /guardrails/test_custom_code` runs user-supplied Python inside a hand-rolled sandbox that "can be escaped using bytecode-level techniques," giving arbitrary code execution in the proxy process, "which runs as root in the default Docker image." The advisory adds that "reaching the endpoint requires a proxy-admin credential in default configurations." It is rated CVSS 8.8 and affects versions 1.81.8 up to 1.83.10. LiteLLM says to upgrade to 1.83.11 or later, where the sandbox is replaced with RestrictedPython, or block the endpoint at a reverse proxy. CISA has not said how it is being exploited.

## Why it matters

The precondition is the identity story. In September, Wiz found 294 exposed gateways still accepting `sk-1234`, the documentation's [example admin key](https://startwithidentity.com/blog/2026-09-10-litellm-gateways-still-accept-the-example-admin-key/), and 191 with no key at all, which LiteLLM treats as full admin. On those, "requires a proxy-admin credential" means no barrier. And LiteLLM's own [October breach](https://startwithidentity.com/blog/2026-10-23-litellm-traces-poisoned-release-to-an-admin-key-leaked-in-may-and-never-revoked/) started with an admin key that was deleted from a repo but never revoked.

Upgrade, then treat the master key as the root credential it is: a long random value, stored in a secrets manager, rotated after the upgrade, never shared with applications, which should get scoped virtual keys instead. If a gateway ran an affected version with a default or shared key, assume the provider API keys it holds were exposed and rotate them; this is [static API key abuse](https://startwithidentity.com/techniques/static-api-key-abuse/) one hop removed.

Source: [LiteLLM advisory GHSA-wxxx-gvqv-xp7p](https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p), [CISA KEV catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217)
