November 23, 2026 / news

CISA Adds LiteLLM Guardrail Sandbox Escape (CVE-2026-40217) to KEV Catalog

CISA put LiteLLM's CVE-2026-40217 guardrail sandbox escape on its KEV list November 18, 2026 (federal deadline December 2). The custom-code endpoint escape runs code as root in the proxy; fix: 1.83.11+ or block the endpoint.

Title: LiteLLM’s Custom-Code Guardrail Sandbox Escape Is Now a KEV Entry — Upgrade to 1.83.11 or Block the Endpoint

Summary: CISA added CVE-2026-40217 to its Known Exploited Vulnerabilities catalog on November 18, 2026 — the catalog exists to track flaws with evidence of real-world exploitation — giving federal agencies a December 2, 2026 remediation deadline. CISA’s record names BerriAI’s LiteLLM and an “unprotected alternate channel” weakness that lets remote attackers run arbitrary code by rewriting bytecode at the /guardrails/test_custom_code URI. The underlying advisory, GHSA-wxxx-gvqv-xp7p, was published May 7, 2026: LiteLLM’s custom-code guardrail endpoint, POST /guardrails/test_custom_code, executes user-supplied Python under a self-built sandbox that bytecode tricks break out of, and escaped code runs with the proxy process’s privileges — root in the stock Docker image. By default the endpoint sits behind a proxy-admin credential, and BerriAI scored the issue Moderate (CVSS 4.0 5.9, CWE-913); the KEV listing nonetheless puts it among flaws CISA tracks as exploited. Per the advisory, affected releases run from 1.81.8 up to but not including 1.83.10, and its metadata tags patched versions as >= 1.83.10 while linking the v1.83.10-stable tag — yet the advisory’s own text says the issue was fixed in 1.83.11, which swapped the homemade sandbox for RestrictedPython and directs users to 1.83.11 or later; with that internal mismatch, 1.83.11 or later is the safe target. Where an upgrade can’t land right away, the advisory’s workaround is to block POST /guardrails/test_custom_code at a fronting reverse proxy or API gateway.

References:

← All news