Known Exploited Vulnerability
8.8
HIGH CVSS 3.1
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 !
CISA Notification
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.

Description :

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.

Required Action :

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.

Known Ransomware Campaign Use:

Unknown

Notes :

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.

ID Vendor Product Action
1 Redhat ansible_automation_platform
2 Redhat openshift_ai
3 Redhat openshift_lightspeed
4 Redhat lightspeed_core
1 Litellm litellm
1 Berriai litellm
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
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 patch the remote code execution vulnerability via bytecode rewriting.
  • 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

Updated: 5 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : June 16, 2026, 1:23 a.m. This repo has been linked 3 different CVEs too.

The code for personally reproducing the corresponding vulnerability

Python

Updated: 6 months ago
0 stars 0 fork 0 watcher
Born at : May 19, 2026, 1:19 p.m. This repo has been linked 1 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 4 months ago
7922 stars 1275 fork 1275 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 646 different CVEs too.

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

Published Date: Nov 21, 2026 (3 days, 22 hours ago)
  • 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

Published Date: Nov 19, 2026 (5 days, 22 hours ago)
  • 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

Published Date: Nov 03, 2026 (3 weeks ago)
  • 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

Published Date: Sep 10, 2026 (2 months, 2 weeks ago)
  • 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

Published Date: Jul 24, 2026 (4 months ago)
  • 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

Published Date: Jun 15, 2026 (5 months, 1 week ago)

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/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.