Skip to content
Start with Identity
News

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

CISA added CVE-2026-40217 to KEV on November 18. LiteLLM's custom-code guardrail test endpoint ran Python in a hand-rolled sandbox that bytecode tricks escape, giving code execution as root in the default image. Reaching it needs a proxy-admin credential by default. Fixed in 1.83.11; federal deadline December 2.

By SWI Community TeamNov 18, 2026

CISA added CVE-2026-40217 in the LiteLLM AI gateway to its Known Exploited Vulnerabilities catalog on November 18, with a December 2 deadline for federal agencies. LiteLLM's advisory, 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, 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 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 one hop removed.

Source: LiteLLM advisory GHSA-wxxx-gvqv-xp7p, CISA KEV catalog

Last reviewed By SWI Community TeamSuggest a correctionHow we research
Independent analysis. No vendor sponsorship. Editorial policy · Report a correction