LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
CVE-2026-40217
CVSS base score
8.8 (v3.1)
Severity
HIGH
Attack vector
Network
Weakness
CWE-420, CWE-94
Last modified
November 19, 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
litellm litellm
redhat ansible automation platform
redhat openshift ai
redhat openshift lightspeed
References
- www.x41-dsec.de Exploit, Mitigation, Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- bugzilla.redhat.com Third Party Advisory
- security.access.redhat.com Third Party Advisory
- www.cisa.gov US Government Resource