Patch now
Confirmed exploited (2 days ago) · disclosed
BerriAI LiteLLM: Sandbox Escape / Code Injection
CVE-2026-40217
The custom-code guardrail test endpoint in the LiteLLM proxy can be escaped from its sandbox to run arbitrary code; the advisory says a proxy-admin credential is needed in default setups. Blocking POST /guardrails/test_custom_code is the stated workaround.
What to do
Update to litellm 1.83.11 (vendor-recommended upgrade)
Affected: litellm 1.81.8 and later, before 1.83.10
Patch internet-facing systems first. If you can't patch yet, apply the vendor's mitigations and limit exposure.
Timeline
- AnnouncedApr 10, 2026 · NVD published
- Added to CISA KEVNov 18, 2026
- Federal fix-byDec 2, 2026
Discussed on Hacker News
- 596pts