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
“▲” beside the score: it is higher than the CVSS score beside it.
Score elevated to 9.0 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2026-11-18), indicating real-world exploitation has been confirmed by US federal agencies. A secondary CVSS source baseline 8.8 retained for reference (NVD's own analysis pending). The 9.0 is the floor for confirmed exploitation, not an impact rating: this CVE's impact severity (EG Severity) is CVSS 8.8 HIGH under GitHub Security Advisory CVSS. Confidence: HIGH.
Also known as · GHSA-wxxx-gvqv-xp7p (GitHub Security Advisories) · PYSEC-2026-2601 (OSV.dev)Source: ENISA EUVD
- Actively exploited in the wild (CISA-KEV) — the reason this is sooner than the SSVC decision on this page at low or medium mission impact
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 9.0CRITICALhigh confidence
- EG Risk
- 80EG Risk 80/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity88% × 45%Impact severity (EG Severity): CVSS 8.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation100% × 40%Fixed at 100% for a CISA KEV listing: EchelonGraph's rule.Automatability0% × 15%CISA's SSVC Automatable value: no (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at low, Attend at medium and Act at high mission impact.Exploitation active (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low, sooner than that at medium and as soon as possible at high mission impact. - EPSS PROB
- 21%
- EPSS %ILE
- 98th
- KEV
- ⚠ Exploited
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.0): severity, escalated by confirmed exploitation. This CVE's 9.0 is the CISA KEV floor for confirmed exploitation, not an impact rating: its impact severity (EG Severity) is CVSS 8.8 HIGH.
- EG Severity
- 8.8 HIGHCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- 21% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-30). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- CISA KEV and EG-KEV Tier 1 (exploited in the wild)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Attend at medium mission impactTrack at low, Attend at medium and Act at high mission impact.CISA BOD 26-04: 3 days & forensic triage if the affected system is publicly exposed; 14 days if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low, Attend at medium and Act at high mission impact.
A fix is available. Apply it within your standard update timelines at low, sooner than that at medium and as soon as possible at high mission impact.
Exploitation active (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)3 days & forensic triage if the affected system is publicly exposed; 14 days if it is not.
The score's inputs: In CISA KEV yes (CISA's KEV catalog) · Automatable no (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
CISA 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.”
Quoted verbatim from CISA's Known Exploited Vulnerabilities catalog. CISA directs it at US federal civilian executive branch agencies under Binding Operational Directive (BOD) 26-04, which replaced BOD 22-01 on 10 June 2026; it is not EchelonGraph's advice. CISA's notes: https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p · https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk · 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
Source timeline
Each source's own date for this CVE, as that source states it, in UTC. For vendor and authority advisories, each publisher's earliest advisory is shown, for at most 12 publishers, and only for publishers whose advisory dates we hold as the publisher's own publication time. The EchelonGraph column shows when our collectors recorded the event, only where that was within 72 hours of the source's date (for a row without one, of the CVE's publication).
| Source | Event | Source's date | Recorded by EchelonGraph | Link |
|---|---|---|---|---|
| CVE.orgMITRE · CVE Program | CVE Record published | 10 Apr 2026, 13:43 UTC | 10 Apr 2026, 15:09 UTC | CVE.org recordOn this page: description |
| GitHub Advisory DatabaseGitHub Advisory Database (CC BY 4.0)Licence | GitHub advisory publishedGHSA-wxxx-gvqv-xp7p | 11 May 2026, 16:17 UTC | recorded later, in a bulk import or a late collection | GitHub advisoryGHSA-wxxx-gvqv-xp7p on EchelonGraph |
| Red Hat Product Security© Red Hat, Inc. (CC BY 4.0)Licence | Vendor advisory publishedRHSA-2026:24866 | 9 Jun 2026, 17:09 UTC | 9 Jun 2026, 19:17 UTC | RHSA-2026:24866 on EchelonGraph |
| CISA KEV | Added to CISA's Known Exploited Vulnerabilities catalogCISA due date: 2 Dec 2026 | 18 Nov 2026 | 18 Nov 2026, 19:26 UTC | CISA KEV catalogOn this page: KEV |
| CVE.orgMITRE · CVE Program | CVE Record last updated | 19 Nov 2026, 16:45 UTC | — | CVE.org recordOn this page: description |
| ENISA EUVDSource: ENISA EUVD | EUVD record updatedEUVD-2026-21376 | 19 Nov 2026 | — | EUVD recordEUVD-2026-21376 on EchelonGraph (this page) |
Advisory Details (7)
Auto-updated Nov 27, 2026Known Exploited Vulnerabilities Catalog | CISA
Known Exploited Vulnerabilities Catalog | CISA. Listed in CISA Known Exploited Vulnerabilities catalog.
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-402172457301 – (CVE-2026-40217) CVE-2026-40217 LiteLLM: LiteLLM: Arbitrary Code Execution via bytecode rewriting
https://bugzilla.redhat.com/show_bug.cgi?id=2457301CVE-2026-40217 - Red Hat Customer Portal
Affected: Red Hat Enterprise Linux 8 or OpenShift Container Platform 4, is affected by this vulnerability and a fix may be released to a
https://access.redhat.com/security/cve/CVE-2026-40217Advisory X41-2026-001: Guardrail Sandbox Escape in LiteLLM | X41 D-Sec - Penetration Tests and Source Code Audits
https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/Vendor Advisories for CVE-2026-40217(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:30056Red Hat Product SecurityHigh
Red Hat Security Advisory: RHOAI 3.3.4 - Red Hat OpenShift AI
- RHSA-2026:24866Red Hat Product SecurityCritical
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
- GHSA-wxxx-gvqv-xp7pGitHub Security AdvisoriesHigh
LiteLLM has a sandbox escape in custom-code guardrail
Patch Availability(3)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| redhat | rhoai/odh-llama-stack-core-rhel9:1782310008 | 2026-06-25 | redhat |
| redhat | ansible-automation-platform-26/lightspeed-chatbot-rhel9:1780102732 | 2026-06-09 | redhat |
| pip | litellm @ 1.83.10 (fixes >= 1.81.8, < 1.83.10) | — | ghsa |
These rows come from Red Hat and GitHub (GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| litellm | 1.81.10 ... 1.83.9 (27 versions) |
| — |
Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 16× in last 7d / 65× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed its CVE.org record (CNA or CISA ADP). An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). "EchelonGraph re-scored" is our own recompute of this CVE's score, not an update from a source, and is not counted in the refreshes above. Most recent first.
Showing the most recent 100 of 303 rows on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. None are among the latest 100 rows. The 203 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-11-30 17:10 UTCEchelonGraph re-scored
- 2026-11-30 17:10 UTCVendor advisory
- 2026-11-30 17:10 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-29 14:49 UTCEchelonGraph re-scored
- 2026-11-29 14:49 UTCVendor advisory
- 2026-11-29 14:49 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-28 12:28 UTCEchelonGraph re-scored
- 2026-11-28 12:28 UTCVendor advisory
- 2026-11-28 12:28 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-27 16:34 UTCEPSS rescoreEPSS 21% · 98th percentile
- 2026-11-27 10:06 UTCEchelonGraph re-scored
- 2026-11-27 10:06 UTCVendor advisory
- 2026-11-27 10:06 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-26 16:36 UTCEPSS rescoreEPSS 20% · 98th percentile
- 2026-11-26 07:44 UTCEchelonGraph re-scored
- 2026-11-26 07:44 UTCVendor advisory
- 2026-11-26 07:44 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-25 16:38 UTCEPSS rescoreEPSS 20% · 98th percentile
- 2026-11-25 05:22 UTCEchelonGraph re-scored
- 2026-11-25 05:22 UTCVendor advisory
- 2026-11-25 05:22 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-24 16:46 UTCEPSS rescoreEPSS 83% · 99th percentile
- 2026-11-24 03:00 UTCEchelonGraph re-scored
- 2026-11-24 03:00 UTCVendor advisory
- 2026-11-24 03:00 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
Show 75 moreShow fewer
- 2026-11-23 16:44 UTCEPSS rescoreEPSS 83% · 99th percentile
- 2026-11-23 00:38 UTCVendor advisory
- 2026-11-23 00:38 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-21 22:16 UTCEchelonGraph re-scored
- 2026-11-21 22:16 UTCVendor advisory
- 2026-11-21 22:16 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-21 16:39 UTCEPSS rescoreEPSS 78% · 99th percentile
- 2026-11-20 19:49 UTCEchelonGraph re-scored
- 2026-11-20 19:49 UTCVendor advisory
- 2026-11-20 19:49 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-20 16:37 UTCEPSS rescoreEPSS 69% · 99th percentile
- 2026-11-19 17:28 UTCEchelonGraph re-scored
- 2026-11-19 17:28 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-19 16:54 UTCEchelonGraph re-scored
- 2026-11-19 16:54 UTCVendor advisory
- 2026-11-19 16:54 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-19 16:34 UTCEPSS rescoreEPSS 62% · 99th percentile
- 2026-11-19 05:28 UTCEchelonGraph re-scored
- 2026-11-19 05:28 UTCVendor advisory
- 2026-11-19 05:28 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-19 05:03 UTCEchelonGraph re-scored
- 2026-11-19 05:03 UTCVendor advisory
- 2026-11-19 05:03 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-18 21:28 UTCEchelonGraph re-scored
- 2026-11-18 21:28 UTCVendor advisory
- 2026-11-18 21:28 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-18 20:58 UTCEchelonGraph re-scored
- 2026-11-18 20:58 UTCVendor advisory
- 2026-11-18 20:58 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-18 19:42 UTCEchelonGraph re-scored
- 2026-11-18 19:42 UTCVendor advisory
- 2026-11-18 19:42 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-18 19:26 UTCVendor advisory
- 2026-11-18 19:26 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-18 19:26 UTCEchelonGraph re-scored▲ 0.20
- 2026-11-18 19:26 UTCCISA KEV update
- 2026-11-18 16:34 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-17 16:35 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-15 12:50 UTCEchelonGraph re-scored
- 2026-11-15 12:50 UTCVendor advisory
- 2026-11-15 12:50 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-14 16:40 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-13 16:52 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-12 16:33 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-11 16:39 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-10 16:43 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-09 16:35 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-08 23:44 UTCEchelonGraph re-scored
- 2026-11-08 23:44 UTCVendor advisory
- 2026-11-08 23:44 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-08 16:39 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-07 16:39 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-05 16:37 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-04 16:35 UTCEPSS rescoreEPSS 17% · 97th percentile
- 2026-11-03 16:48 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-11-02 16:44 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-11-02 10:38 UTCEchelonGraph re-scored
- 2026-11-02 10:38 UTCVendor advisory
- 2026-11-02 10:38 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-01 16:34 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-11-01 07:52 UTCGHSA enrichmentGHSA-wxxx-gvqv-xp7p · GitHub severity HIGH · GitHub CVSS 8.8
- 2026-11-01 07:52 UTCEchelonGraph re-scored
- 2026-10-31 16:32 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-10-30 16:34 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-10-29 16:33 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-10-28 16:32 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-10-27 16:31 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-10-26 21:32 UTCEchelonGraph re-scored
- 2026-10-26 21:32 UTCVendor advisory
- 2026-10-26 16:31 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-10-25 16:32 UTCEPSS rescoreEPSS 16% · 96th percentile
- 2026-10-25 14:31 UTCEchelonGraph re-scored
- 2026-10-24 16:32 UTCEPSS rescoreEPSS 3.4% · 88th percentile
- 2026-10-24 04:12 UTCEchelonGraph re-scored
- 2026-10-24 04:12 UTCVendor advisory
Public detection templates
(1 reference)A public Nuclei detection template is referenced for this CVE. A detection template checks whether a system is affected; it is not necessarily exploit code.
- Nucleihttp/cves/2026/CVE-2026-40217.yamlPublished Aug 22, 2026
LiteLLM < 1.25.0 - Remote Code Execution
Open source ↗
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownPyPI:litellm
- CVE-2026-114612EG 9.9CRITICAL
- CVE-2026-37004EG 9.8CRITICAL
- CVE-2026-12773EG 9.8CRITICAL
- CVE-2026-49468EG 9.8CRITICAL
- CVE-2026-42208EG 9.8 KEVEPSS p94CRITICAL
- CVE-2024-5751EG 9.8CRITICAL
- CVE-2024-4264EG 9.8CRITICAL
- CVE-2024-2952EG 9.8CRITICAL
- CVE-2026-35030EG 9.1CRITICAL
- CVE-2026-59822NVD 8.2EG 9.0 KEVCRITICAL
Same vendor
10 shownredhat:RHSA-2026:24866 · redhat:RHSA-2026:30056
- CVE-2025-62718EG 9.9CRITICAL
- CVE-2026-39892EG 9.8CRITICAL
- CVE-2026-35030EG 9.1CRITICAL
- CVE-2026-48710NVD 6.5EG 9.0 KEVEPSS p95CRITICAL
- CVE-2026-42271NVD 8.8EG 9.0 KEVEPSS p95CRITICAL
- CVE-2026-35029EG 8.8EPSS p91HIGH
- CVE-2026-41140EG 8.7HIGH
- CVE-2026-33154EG 8.1HIGH
- CVE-2026-6321EG 7.5HIGH
- CVE-2026-40192EG 7.5HIGH
Same CWE
10 shownCWE-94
Frequently asked(6)
What is CVE-2026-40217?
When was the CVE record for CVE-2026-40217 published?
Is CVE-2026-40217 actively exploited?
What is the CVSS score of CVE-2026-40217?
Which products are affected by CVE-2026-40217?
How do I remediate CVE-2026-40217?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-40217
Is Your Infrastructure Affected by CVE-2026-40217?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.