Home / BerriAI / LiteLLM / CVE-2026-40217
CVE-2026-40217: is it exploited, and which versions of BerriAI LiteLLM are affected and fixed?
CVE-2026-40217 is an unprotected alternate channel vulnerability in BerriAI LiteLLM, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on November 18, 2026, with a federal due date of December 2, 2026. Affected: litellm from 1.81.8 before 1.83.10 (GitHub advisory GHSA-wxxx-gvqv-xp7p). Fixed in 1.83.10 (GitHub advisory GHSA-wxxx-gvqv-xp7p). Severity: High (8.8, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:08 UTC, CVE record November 19, 2026, 18:05 UTC and NVD November 19, 2026, 18:04 UTC.
What is 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.
From the CVE record by mitre, last updated November 19, 2026, 16:45 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| BerriAI | LiteLLM | not stated |
As the CVE record by mitre states it, last updated November 19, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | litellm | >= 1.81.8, < 1.83.10 | 1.83.10 | GHSA-wxxx-gvqv-xp7p |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 11, 2026. Summary: LiteLLM has a sandbox escape in custom-code guardrail.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| litellm | litellm | from 1.81.8 before 1.83.10 | application |
| redhat | ansible automation platform | from 2.0 before 2.6-9 | application |
| redhat | openshift ai | from 3.3 before 3.3.4 | application |
| redhat | openshift lightspeed | all versions | application |
NVD analysis (status Analyzed), last modified November 19, 2026, 17:18 UTC.
How severe is CVE-2026-40217?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | mitre |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | redhat-SADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40217 exploited in the wild?
- CISA KEV
- Listed as BerriAI LiteLLM Unprotected Alternate Channel Vulnerability, added November 18, 2026; federal agencies must act by December 2, 2026
- 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.
- Ransomware use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, November 19, 2026)
- EPSS
- 83.1% probability of exploitation activity in the next 30 days, percentile 99.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 government-resource
- https://access.redhat.com/security/cve/CVE-2026-40217 vdb-entry, x_refsource_REDHAT
- RHBZ#2457301 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:24866 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:30056 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- April 10, 2026
- Published
- April 10, 2026, 13:43 UTC
- CVE record updated
- November 19, 2026, 16:45 UTC by mitre
- NVD
- Analyzed, last modified November 19, 2026, 17:18 UTC
- Last checked
- CVE list November 19, 2026, 18:05 UTC; NVD November 19, 2026, 18:04 UTC; KEV December 3, 2026, 06:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect LiteLLM?
- Jul 8, 2026CVE-2026-59822 BerriAI litellm: authentication bypass (improper authentication) exploited
- May 8, 2026CVE-2026-42208 BerriAI litellm: SQL injection exploited
- May 8, 2026CVE-2026-42271 BerriAI litellm: command injection exploited
- Mar 23, 2026CVE-2026-33634 aquasecurity setup-trivy: embedded Malicious Code exploited
- Nov 23, 2026CVE-2026-135287 BerriAI litellm: external Control of System or Configuration Setting
- Oct 22, 2026CVE-2026-114612 BerriAI litellm: privilege escalation (improper privilege management)
- Oct 11, 2026CVE-2026-108575 BerriAI LiteLLM: improper authorization
- Oct 11, 2026CVE-2026-108574 BerriAI LiteLLM: authorization bypass through a user-controlled key (IDOR)
Questions about CVE-2026-40217
Is CVE-2026-40217 exploited in the wild?
Yes. CISA added CVE-2026-40217 to its Known Exploited Vulnerabilities catalog on November 18, 2026 and set federal agencies a due date of December 2, 2026. FIRST's EPSS gives it a 83.1% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of BerriAI LiteLLM are affected by CVE-2026-40217?
litellm from 1.81.8 before 1.83.10, per the GitHub advisory GHSA-wxxx-gvqv-xp7p. The tables above give every range the sources list.
Which version fixes CVE-2026-40217?
1.83.10, per the GitHub advisory GHSA-wxxx-gvqv-xp7p. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40217?
High (8.8, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40217?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.