CVE-2026-40217
CVE-2026-40217 is a high-severity vulnerability in Litellm with a CVSS 3.x base score of 8.8. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2026-11-18). The underlying weakness is classified as CWE-420.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- EPSS exploit prediction: 78% (100th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2026-11-18)
- EU (EUVD) id: EUVD-2026-21376
- Weakness: CWE-420
- Affected product: Litellm
- Published:
- Last modified:
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Frequently asked questions
- 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.
- How severe is CVE-2026-40217?
- CVE-2026-40217 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-40217 being actively exploited?
- Yes. CVE-2026-40217 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2026-11-18, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2026-40217?
- CVE-2026-40217 primarily affects Litellm. In total, 4 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2026-40217?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2026-40217 have an EU (EUVD) identifier?
- Yes. CVE-2026-40217 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-21376.
- When was CVE-2026-40217 published?
- CVE-2026-40217 was published on 2026-04-10 and last updated on 2026-11-19.
References
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
- 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
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217
Affected products (4)
- cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
- cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*
More vulnerabilities in Litellm
- CVE-2026-49468 — Critical (CVSS 9.8): LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.84.0, a Host-header…
- CVE-2026-42208 — Critical (CVSS 9.8): LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.81.16 to before…
- CVE-2024-5751 — Critical (CVSS 9.8): BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The…
- CVE-2024-2952 — Critical (CVSS 9.8): BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. The…
- CVE-2026-35030 — Critical (CVSS 9.1): LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.0, when JWT…
- CVE-2026-47102 — High (CVSS 8.8): LiteLLM prior to 1.83.10 allows a user to modify their own user_role via the /user/update endpoint. While the endpoint…
Other CWE-420 vulnerabilities
- CVE-2023-20198 — Critical (CVSS 10.0): Cisco is providing an update for the ongoing investigation into observed exploitation of the web UI feature in Cisco…
- CVE-2025-52921 — Critical (CVSS 9.9): In Innoshop through 0.4.1, an authenticated attacker could exploit the File Manager functions in the admin panel to…
- CVE-2025-13315 — Critical (CVSS 9.8): Twonky Server 8.5.2 on Linux and Windows is vulnerable to an access control flaw. An unauthenticated attacker can…
- CVE-2026-105008 — Critical (CVSS 9.0): No cwe for this issue in Windows Schannel allows an unauthorized attacker to perform spoofing over a network.
- CVE-2025-54309 — Critical (CVSS 9.0): CrushFTP 10 before 10.8.5 and 11 before 11.3.4_23, when the DMZ proxy feature is not used, mishandles AS2 validation…
- CVE-2025-54351 — High (CVSS 8.9): In iperf before 3.19.1, net.c has a buffer overflow when --skip-rx-copy is used (for MSG_TRUNC in recv).