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 not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-420.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- EPSS exploit prediction: 6% (93rd percentile)
- Actively exploited: Not listed in CISA KEV
- 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?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 6% (93rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-40217?
- CVE-2026-40217 affects Litellm. See the affected-products list for the exact vulnerable 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. Given its high severity, prioritise patching exposed systems.
- 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-06-30.
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
Affected products (1)
- cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*
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, This…
- 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-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).
- CVE-2025-62001 — High (CVSS 8.8): BullWall Ransomware Containment supports configurable file and directory exclusions such as '$RECYCLE.BIN' to balance…