CVEs / CVE-2026-40217
CVE-2026-40217: BerriAI LiteLLM vulnerability
- high 8.8 CVSS 3.1 (from the CNA)
- EPSS 17% chance of exploitation in the next 30 days, higher than 97% of CVEs (5 Nov 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2026-40217
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| BerriAI LiteLLM | bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f | — |
Exploitation
Not in the CISA Known Exploited Vulnerabilities catalog as of 4 Nov 2026.
Severity
| CVSS 3.1 | 8.8 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HScored by the CNA ([email protected]) |
|---|---|
| Weakness | CWE-420, CWE-94 |
References
- CVE-2026-40217 on NVD
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ Exploit, Mitigation, Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:24866
- https://access.redhat.com/errata/RHSA-2026:30056
- https://access.redhat.com/security/cve/CVE-2026-40217
- https://bugzilla.redhat.com/show_bug.cgi?id=2457301
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.