High · 8.8 Critical vulnerabilities CVE-2026-40217 Actively exploited
BerriAI LiteLLM: Known Exploited Code Execution Flaw via Guardrails Test Endpoint (CVE-2026-40217)
CVE-2026-40217 is a known exploited vulnerability in BerriAI LiteLLM that allows remote attackers to execute arbitrary code through bytecode rewriting at the /guardrails/test_custom_code endpoint. No vendor fix is currently available, and CISA has added it to its Known Exploited Vulnerabilities catalog with a mandated remediation deadline.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability in BerriAI LiteLLM, tracked as CVE-2026-40217, has been confirmed as known exploited and added to the CISA Known Exploited Vulnerabilities (KEV) catalog. The flaw allows remote attackers to execute arbitrary code through bytecode rewriting at a specific guardrails testing endpoint. At the time of writing, no fix is available from the vendor.
What happened
LiteLLM, a product from vendor BerriAI, contains a vulnerability that allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. The issue affects LiteLLM through builds dated 8 April 2026. This vulnerability has been confirmed as known exploited and was added to the CISA Known Exploited Vulnerabilities catalog on 18 November 2026.
Technical cause
The vulnerability is classified as CWE-420, Unprotected Alternate Channel. The /guardrails/test_custom_code endpoint permits bytecode rewriting that results in arbitrary code execution. The vulnerability has a CVSS 3.1 base score of 8.8 (vector: AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), indicating a network-exploitable issue requiring low privileges and no user interaction, with high impact on confidentiality, integrity, and availability.
Why it matters
This vulnerability has been confirmed as known exploited, meaning it carries active risk beyond theoretical exposure. Combined with network exploitability, low attack complexity, and no required user interaction, this represents a serious risk to any internet-facing deployment of the affected endpoint. No public exploit code details were supplied in the available facts, and no fix is currently available, which increases the urgency of risk mitigation.
Who is affected
Organizations running BerriAI LiteLLM deployments that expose the /guardrails/test_custom_code endpoint are affected. The available facts do not specify particular deployment configurations or user segments beyond this.
Discovery and timeline
The vulnerability was published on 10 April 2026. It was added to the CISA Known Exploited Vulnerabilities catalog on 18 November 2026, with a stakeholder remediation due date of 2 December 2026. No further details on how exploitation was discovered are included in the available facts.
Fixes and mitigation
No fix is currently available for this vulnerability according to the available facts. CISA guidance for entries without an available fix directs organizations to apply mitigations in accordance with vendor instructions where possible, and to evaluate discontinuing use of the affected product if no mitigation can be applied, in line with applicable federal patching guidance (BOD 26-04). The available facts do not specify a concrete mitigation beyond this general guidance.
Recommended action
Organizations running BerriAI LiteLLM should assess whether the /guardrails/test_custom_code endpoint is exposed, particularly to the internet, and restrict or disable access where not strictly required. Since no vendor fix is currently available, organizations should monitor for vendor updates and consider the general CISA guidance of evaluating internet exposure and, where mitigations cannot be applied, discontinuing use of the product. Federal stakeholders have a remediation deadline of 2 December 2026, but all organizations should treat this issue as high priority given its confirmed known exploited status.
PatchBriefing score
8.8 / 10 · High
Official CVSS: 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS 0.2022 (98 percentile)
Listed in CISA KEV since November 18, 2026
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
Reported fixes
No fix is currently available for this vulnerability according to the available facts. CISA guidance for entries without an available fix directs organizations to apply mitigations in accordance with vendor instructions where possible, and to evaluate discontinuing use of the affected product if no mitigation can be applied, in line with applicable federal patching guidance (BOD 26-04). The available facts do not specify a concrete mitigation beyond this general guidance.
How this was built
3 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
CISA Known Exploited Vulnerabilities government
-
CVE.org database
Revision history
- Published
- Generated
- Published
- Generated
- Published
- Early Warning