Actively Exploited, CISA KEV
CVE-2026-40217: BerriAI LiteLLM High-Severity Vulnerability
Severity: High | CVSS 3.1: 8.8 | Published: 2026-04-10 | KEV Added: 2026-11-18
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.
Technical Analysis
Weakness Classification
This vulnerability is classified as CWE-420.
Attack Vector Breakdown
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Unchanged
- Confidentiality: High
- Integrity: High
- Availability: High
Impact Analysis
This vulnerability is exploitable over the network, meaning any system reachable via the internet or internal network is potentially at risk without physical access. The attack complexity is low, meaning exploitation does not depend on specialized conditions or race windows. Successful exploitation can result in full confidentiality breach (complete data disclosure), complete integrity compromise (data modification or code execution), total availability loss (denial of service).
Exploitation Probability (EPSS): 17.0% chance of exploitation in the next 30 days (97th percentile). This is a significantly elevated exploitation probability, prioritize patching.
Exploit Availability
Public exploit code or proof-of-concept is available for CVE-2026-40217. This significantly increases the risk of exploitation, as attackers can use or adapt existing exploit code rather than developing their own. A public exploit reference has been identified. Organizations should treat this as an urgent patching priority.
Is CVE-2026-40217 being exploited?
Yes. CVE-2026-40217 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, restricted to CVEs with confirmed active exploitation in the wild. CISA added this vulnerability on 2026-11-18. Inclusion in KEV triggers the patching mandate under BOD 22-01 for U.S. federal civilian agencies, with a remediation deadline of 2026-12-02. Additionally, public exploit code is available, which lowers the barrier for attackers.
How to fix CVE-2026-40217
Apply the security update issued by BerriAI for LiteLLM. If an immediate patch is not possible, consult the vendor advisory for mitigation guidance, restrict network exposure of the affected service, and monitor logs for indicators of exploitation. CISA's Known Exploited Vulnerabilities catalog requires U.S. federal agencies to remediate this vulnerability by the due date shown below under Binding Operational Directive 22-01. Private organizations should treat KEV entries as priority-one patches because active exploitation has been confirmed in the wild.
Related Vulnerabilities
Other actively exploited vulnerabilities affecting LiteLLM or sharing the same weakness (CWE-420):
- CVE-2026-59822 (High 8.2) [same product], LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native)…
- CVE-2026-42271 (High 8.8) [same product], LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native)…
- CVE-2026-42208 (Critical 9.8) [same product], LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native)…
Frequently asked questions
Is CVE-2026-40217 critical?
CVE-2026-40217 has a CVSS 3.1 base score of 8.8, High severity. It should be treated as a priority patch, especially given the active exploitation confirmed by CISA. The availability of public exploit code further increases the urgency.
Is CVE-2026-40217 being actively exploited?
Yes, CISA added CVE-2026-40217 to the Known Exploited Vulnerabilities catalog on 2026-11-18. Inclusion in KEV means CISA has confirmed in-the-wild exploitation. Public exploit code has also been identified, making exploitation accessible to a broader range of threat actors.
How do I patch CVE-2026-40217?
Apply the security update from BerriAI for LiteLLM. Federal agencies must remediate by 2026-12-02 under BOD 22-01.
What type of vulnerability is CVE-2026-40217?
CVE-2026-40217 is classified under CWE-420.
What is the CVSS score for CVE-2026-40217?
CVE-2026-40217 has a CVSS 3.1 base score of 8.8, classifying it as High severity. The attack vector is Network, attack complexity is Low, and non-zero privileges are required.