HighCVSS8.82026-11-19
CVE-2026-40217 — LiteLLM custom-code guardrail sandbox escape lets code run on the proxy, exploited in the wild: explainer and fix (listed in KEV, due 2 December)
A flaw in the LiteLLM proxy (KEV class CWE-420). POST /guardrails/test_custom_code runs user-supplied Python in a hand-rolled sandbox that can be escaped with bytecode-level techniques. BerriAI's advisory says reaching the endpoint needs a proxy-admin credential in default configurations and that the proxy runs as root in the default Docker image. CVSS v3.1 is 8.8. CISA added it to KEV on 18 November (due 2 December). Fixed in 1.83.11 and later. Our take: update, narrow admin keys, and block the endpoint upstream until you can.