Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Details
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · Attack vector: NetworkReferences (7)
| https://access.redhat.com/errata/RHSA-2026:24866 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:30056 | Third Party Advisory |
| https://access.redhat.com/security/cve/CVE-2026-40217 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2457301 | Third Party Advisory |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json | Third Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 | US Government Resource |
| https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ | ExploitMitigationThird Party Advisory |
A short explanation of who is affected, the impact and what to do, written only from this record's data.
AI isn't configured on this server (set AI_PROVIDER and an API key).
Learn about this vulnerability
What Is Remote Code Execution (RCE)?RCE lets an attacker run their own commands on a system they don't control. Learn the common causes, real examples and how to reduce the risk.Beginner · 4-minute readCVSS vs EPSS vs CISA KEV: Understanding the DifferencesThree signals, three different questions. CVSS measures how bad a flaw could be, EPSS estimates how likely exploitation is, and KEV confirms attackers are already using it.Intermediate · 4-minute readWhat Is a CVE? A Beginner's Guide to VulnerabilitiesCVE IDs are the common names for publicly known security flaws. Learn who assigns them, what a CVE record contains, and what a CVE does and doesn't tell you.Beginner · 4-minute readIn the news
Headlines that mention CVE-2026-40217. Each opens on the publisher's site.
Track this software
Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.
+ Litellm Litellm+ Redhat Ansible Automation Platform+ Redhat Openshift Ai+ Redhat Openshift LightspeedCISA KEV entry
BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Notes: https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-40217