High severity · published Apr 10, 2026
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.8
CVSS
15.5%
EPSS
No
On KEV
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)15.5% · higher than 97% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
LiteLLM · BerriAI
bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f · source: vendor, NVD
LC
Lightspeed Core · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Ansible Automation Platform 2.6 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI 3.3 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-40217
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-40217
Exploit
https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:24866
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:30056
access.redhat.com
https://access.redhat.com/security/cve/CVE-2026-40217
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2457301
security.access.redhat.com
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json
More from LiteLLM
9.8
CVE-2026-42208
LiteLLM: SQL injection in Proxy API key verification
8.8
CVE-2026-42271
LiteLLM: Authenticated command execution via MCP stdio test endpoints
8.8
CVE-2026-33634
Trivy ecosystem supply chain briefly compromised
8.2
CVE-2026-59822
LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback
9.9
CVE-2026-114612
LiteLLM: Privilege Escalation to Proxy Admin via Cross-Domain Reuse of the Salt Key
