LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the…
CVE-2026-40217Published 10 Apr 2026, 13:43 UTC
Exploited in the wild
CISA added it to the Known Exploited Vulnerabilities list on 18 Nov 2026; US federal agencies must fix it by 2 Dec 2026.
Real-world risk
8.0/ 10High
Act now: it is being exploited.
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.8
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from mitre)
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| berriai/litellmCommon | = bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T5: Exploited in the wild (× 1.00)
On CISA KEV or VulnCheck KEV, flagged exploited by ENISA's EUVD, CISA's SSVC says active, or the vendor's or CNA's own page says it is exploited
- On CISA’s Known Exploited Vulnerabilities list
- Nuclei scanner template (link)
- CISA SSVC: exploitation active
EPSS 83.1% chance of exploitation in 30 days (percentile 100), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T5: Exploited in the wild1.000
- 10 × impact 1 × prerequisites 0.6 × threat 16.000
- Exploited in the wild: attackers have already met the prerequisites, so they count only by their square root7.746
- Exploited in the wild: at least 88.000
- Rounded to one decimal between 0.1 and 108.0
Exploitation and evidence timeline
- 10 Apr 2026 Published
- 18 Nov 2026 Added to CISA KEV
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 CISA SSVC: exploitation active first seen
- 3 Dec 2026 Risk 8.0 (cvss fallback)
Weakness
CWE-420
References
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217government-resource
- https://access.redhat.com/security/cve/CVE-2026-40217redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2457301issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:24866redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:30056redhat, vendor-advisory
- CVE-2026-40217 on CVE.org