Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Affected products
litellm: litellm
References6
- www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ ExploitMitigationThird Party Advisory
- access.redhat.com/errata/RHSA-2026:24866
- access.redhat.com/errata/RHSA-2026:30056
- access.redhat.com/security/cve/CVE-2026-40217
- bugzilla.redhat.com/show_bug.cgi?id=2457301
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217…
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 17% percentile: 97 · as of 12 November 2026
- CWE
- CWE-420CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.