Act Now Critical KEV CVE-2026-40217 For CISO, SOC / IR, AppSec, AI Eng AI-assisted
CISA adds BerriAI LiteLLM CVE-2026-40217 remote code execution flaw to KEV catalog
CISA added CVE-2026-40217, an unprotected alternate channel vulnerability in BerriAI LiteLLM, to its Known Exploited Vulnerabilities catalog on 2026-11-18. The flaw could let remote attackers execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. The remediation due date is 2026-12-02. Use in ransomware campaigns is listed as unknown.
Why it matters
LiteLLM is commonly deployed as an LLM gateway, so exposed instances could give attackers code execution on hosts that hold model API keys and routing configuration. Inclusion in the KEV catalog indicates the flaw is known to be exploited.
Do this
- Apply the mitigations or fixed version described in the BerriAI advisory GHSA-wxxx-gvqv-xp7p.
- Inventory LiteLLM deployments and identify any that are reachable from the internet.
- Restrict or block access to the /guardrails/test_custom_code endpoint until patched, and limit proxy admin access to trusted networks.
- Review logs for requests to /guardrails/test_custom_code and perform forensic triage on suspect hosts per CISA guidance.
- Rotate API keys and secrets stored on or accessible to any potentially compromised LiteLLM instance.
Exploit Clock
Exploited in the wild
- Listed in CISA KEV (confirmed exploitation)
Signals
- YesCISA KEV
- 17.02%EPSS
- 77/100Priority
- 90%Confidence
Evidence
“BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.”
Sources
Affected / related
BerriAI, LiteLLM
Published 2026-11-18 12:00 UTC · updated 2026-11-18 20:05 UTC · AI-assisted summary, checked against quoted sources · How we score