LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Fix
Public exploits 1
- learner202649/CVE-2026-40217-PoC PoC on GitHub
Each line links to the index that lists it, never to exploit code. Exploit-DB's "verified" and a Metasploit rank of good or better count as verified; a PoC-in-GitHub entry is a repository's claim.
Patch, vendor advisory and mitigation references on NVD 1
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ Exploit, Mitigation, Third Party Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.8 · litellmNVD modified 2026-10-26 21:10
Affected (CPE criteria) 1
cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*
References 6
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ Exploit, Mitigation, Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:24866
- https://access.redhat.com/errata/RHSA-2026:30056
- https://access.redhat.com/security/cve/CVE-2026-40217
- https://bugzilla.redhat.com/show_bug.cgi?id=2457301
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json