KEV catalog · CISA Known Exploited Vulnerabilities
CVE-2026-40217
8.8
Details
Descriptions
KEV: 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.
NVD: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Compliance SSVC + BOD 26-04
Research metadata
https://osv.dev/vulnerability/PYSEC-2026-2601
https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
https://github.com/learner202649/CVE-2026-40217-PoC
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml
https://labs.zenity.io/post/threat-actors-are-trying-to-use-litellm-s-guardrail-tester-to-run-code-as-root
https://www.obsidiansecurity.com/blog/litellm-privilege-escalation-rce
https://github.com/BerriAI/litellm/pull/25818
https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable
https://docs.litellm.ai/docs/proxy/guardrails/custom_code_guardrail
Hunting hypothesis agent
Hunt WAF or body-capturing proxy logs for POST /guardrails/test_custom_code with custom_code carrying string-fragment dunders ("_"+"_gl"+"ob"+"als"), str.mro()[1], gi_code or co_names, behind Bearer sk- key spray; 200s echo rce output.
Research details
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml Third-party repos; verify before use.
https://docs.litellm.ai/docs/proxy/guardrails/custom_code_guardrail
https://github.com/BerriAI/litellm/pull/25818
https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable
https://www.obsidiansecurity.com/blog/litellm-privilege-escalation-rce
Tia coverage
When Tia's reporting first covered this CVE and whether a report claimed exploitation before the KEV listing. Lead-time deltas are measured from the exploitation report only — plain coverage is not exploitation intel. See the story links under Mentioned in for coverage detail.
Mentioned in
able2shell-frequently-asked-questions-for-reported-n-able-n-centcisa-warns-of-4-exploited-flaws-linked-to-ransomware-cryptomininlitellm-and-langflow-rces-under-active-exploitation-cisa-kev
Record schema v1.0. Enrichment is research-grade, not a substitute for analyst review.