CVE-2026-40217
BerriAI LiteLLM Unprotected Alternate Channel Vulnerability - [Actively Exploited]
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
INFO
Published Date :
April 10, 2026, 2:16 p.m.
Last Modified :
Nov. 19, 2026, 5:18 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CISA KEV (Known Exploited Vulnerabilities)
For the benefit of the cybersecurity community and network defenders—and to help every organization better manage vulnerabilities and keep pace with threat activity—CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild.
BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Unknown
https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-40217
Affected Products
The following products are affected by CVE-2026-40217
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 8254265b-2729-46b6-b9e3-3dfca2d5bfca | ||||
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Solution
- Update LiteLLM to the latest version.
- Restrict access to the /guardrails/test_custom_code URI.
- Review custom code execution policies.
Public PoC/Exploit Available at Github
CVE-2026-40217 has a 3 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-40217.
| URL | Resource |
|---|---|
| https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ | Exploit Mitigation Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:24866 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:30056 | Third Party Advisory |
| https://access.redhat.com/security/cve/CVE-2026-40217 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2457301 | Third Party Advisory |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json | Third Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 | US Government Resource |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-40217 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-40217
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
CVE-2026-47101, CVE-2026-47102, CVE-2026-40217
Python
The code for personally reproducing the corresponding vulnerability
Python
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-40217 vulnerability anywhere in the article.
-
TheCyberThrone
CISA KEV Weekly Briefing: Week 47
CISA’s Known Exploited Vulnerabilities (KEV) Catalog continues to highlight security weaknesses that have moved beyond theoretical risk into known exploitation.Between 17 and 20 November 2026, nine vu ... Read more
-
The Hacker News
CISA Warns of 4 Exploited Flaws Linked to Ransomware, Cryptomining, and LLMjacking Attacks
The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Wednesday added four vulnerabilities impacting Synology DiskStation Manager (DSM), BerriAI LiteLLM, Apache Axis, and Vanderbilt Univ ... Read more
-
The Hacker News
Google Warns LLMjacking Attacks Are Costing Some Enterprises Up to $1 Million in Cloud Charges
Google on Monday warned that threat actors are hijacking enterprise access to Large Language Models (LLMs) to fraudulently leverage expensive computing resources and AI services. The tactic is called ... Read more
-
The Hacker News
Nearly 1 in 10 Exposed LiteLLM Gateways Accepted the Example "sk-1234" Admin Key
Nearly one in ten of the internet-facing LiteLLM servers that Wiz Research scanned in February accepted sk-1234, the example admin key in LiteLLM's own setup guide. LiteLLM is an open-source AI gatewa ... Read more
-
The Hacker News
ChatGPT AgentForger Flaw Could Deploy Rogue Workspace Agents via a Phishing Link
Cybersecurity researchers have disclosed a critical vulnerability in OpenAI's ChatGPT Workspace Agents that could have allowed a single phishing link to stealthily build, authorize, and deploy an auto ... Read more
-
The Hacker News
LiteLLM Vulnerability Chain Lets Low-Privilege Users Take Over AI Gateway Servers
A default low-privilege account on a LiteLLM proxy can climb to full admin and run code on the server by chaining three vulnerabilities, researchers at Obsidian Security disclosed LiteLLM is a widely ... Read more
The following table lists the changes that have been made to the
CVE-2026-40217 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 19, 2026
Action Type Old Value New Value Removed SSVC {'id': 'CVE-2026-40217', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'active'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-15T00:00:00+00:00'} Added SSVC {'id': 'CVE-2026-40217', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'active'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-11-19T04:55:16.960787Z'} -
Modified Analysis by [email protected]
Nov. 19, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:* versions from (including) 3.3 up to (excluding) 3.3.4 *cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:* *cpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:* versions from (including) 2.0 up to (excluding) 2.6-9 Changed CPE Configuration OR *cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* versions up to (including) 2026-04-08 OR *cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* versions from (including) 1.81.8 up to (excluding) 1.83.10 Added Reference Type CISA-ADP: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 Types: US Government Resource Added Reference Type redhat-SADP: https://access.redhat.com/errata/RHSA-2026:24866 Types: Third Party Advisory Added Reference Type redhat-SADP: https://access.redhat.com/errata/RHSA-2026:30056 Types: Third Party Advisory Added Reference Type redhat-SADP: https://access.redhat.com/security/cve/CVE-2026-40217 Types: Third Party Advisory Added Reference Type redhat-SADP: https://bugzilla.redhat.com/show_bug.cgi?id=2457301 Types: Third Party Advisory Added Reference Type redhat-SADP: https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json Types: Third Party Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 19, 2026
Action Type Old Value New Value Removed SSVC {'id': 'CVE-2026-40217', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'active'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-11-18T20:42:12.717870Z'} Added SSVC {'id': 'CVE-2026-40217', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'active'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-15T00:00:00+00:00'} -
CVE CISA KEV Update by 9119a7d8-5eab-497f-8521-727c672e3725
Nov. 18, 2026
Action Type Old Value New Value Added Date Added 2026-11-18 Added Due Date 2026-11-18 Added Required Action 2026-11-18 Added Vulnerability Name 2026-11-18 -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Nov. 18, 2026
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2026:24866 Added Reference https://access.redhat.com/errata/RHSA-2026:30056 Added Reference https://access.redhat.com/security/cve/CVE-2026-40217 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2457301 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json Removed Reference https://access.redhat.com/errata/RHSA-2026:24866 Removed Reference https://access.redhat.com/errata/RHSA-2026:30056 Removed Reference https://access.redhat.com/security/cve/CVE-2026-40217 Removed Reference https://bugzilla.redhat.com/show_bug.cgi?id=2457301 Removed Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json -
CVE Modified by [email protected]
Nov. 18, 2026
Action Type Old Value New Value Added Reference https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ Removed Reference https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ Removed Reference Type https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ Types: Exploit, Mitigation, Third Party Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 18, 2026
Action Type Old Value New Value Added Reference https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 Removed SSVC {'id': 'CVE-2026-40217', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-15T00:00:00+00:00'} Added SSVC {'id': 'CVE-2026-40217', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'active'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-11-18T20:42:12.717870Z'} -
CVE Translated by [email protected]
Oct. 26, 2026
Action Type Old Value New Value Added Translation Title: LiteLLM de BerriAI, Description: LiteLLM hasta el 08-04-2026 permite a atacantes remotos ejecutar código arbitrario mediante la reescritura de bytecode en la URI /guardrails/test_custom_code. -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jul. 15, 2026
Action Type Old Value New Value Changed Affected [{'cpes': ['cpe:/a:redhat:ansible_automation_platform:2.6::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2.6', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.3::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.3', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:lightspeed_core'], 'vendor': 'Red Hat', 'product': 'Lightspeed Core', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI (RHOAI)', 'defaultStatus': 'unaffected'}] [{'cpes': ['cpe:/a:redhat:ansible_automation_platform:2.6::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2.6', 'versions': [{'status': 'unaffected', 'version': '1780102732', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'ansible-automation-platform-26/lightspeed-chatbot-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.3::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.3', 'versions': [{'status': 'unaffected', 'version': '1782310008', 'lessThan': '*', 'versionType': 'rpm'}], 'packageName': 'rhoai/odh-llama-stack-core-rhel9', 'collectionURL': 'https://catalog.redhat.com/software/containers/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:lightspeed_core'], 'vendor': 'Red Hat', 'product': 'Lightspeed Core', 'packageName': 'redhat-user-workloads/lightspeed-stack', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI (RHOAI)', 'packageName': 'rhoai/odh-mlflow-rhel9', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}] -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jun. 30, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/a:redhat:ansible_automation_platform:2.6::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat Ansible Automation Platform 2.6', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai:3.3::el9'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI 3.3', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:lightspeed_core'], 'vendor': 'Red Hat', 'product': 'Lightspeed Core', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:openshift_ai'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift AI (RHOAI)', 'defaultStatus': 'unaffected'}] Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-94 Added Reference https://access.redhat.com/errata/RHSA-2026:24866 Added Reference https://access.redhat.com/errata/RHSA-2026:30056 Added Reference https://access.redhat.com/security/cve/CVE-2026-40217 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2457301 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-40217', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-15T00:00:00+00:00'} -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'BerriAI', 'product': 'LiteLLM', 'versions': [{'status': 'affected', 'version': 'bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}] -
Initial Analysis by [email protected]
Apr. 27, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* versions up to (including) 2026-04-08 Added Reference Type MITRE: https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ Types: Exploit, Mitigation, Third Party Advisory -
New CVE Received by [email protected]
Apr. 10, 2026
Action Type Old Value New Value Added Description LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-420 Added Reference https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/