Vulnerability
CVE-2026-40217
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
8 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-62pr-hpf4-cg5q
- CGA-6vph-3236-r5f7
- CGA-957w-fc57-7cwc
- CGA-h5r4-6hr8-vh4x
- CGA-jwf3-66f9-vgcx
- CGA-wwc8-m5xr-69xq
-
GHSA-wxxx-gvqv-xp7p
LiteLLM has a sandbox escape in custom-code guardrail
-
PYSEC-2026-2601
LiteLLM has a sandbox escape in custom-code guardrail
References
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
- 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
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217