CVE-2026-40217: Vulnerability in Litellm

Actively exploited. 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.

Exploited in the wild, PyPI, CWE-420, CWE-913

Exploitation
Confirmed 18 Nov 2026
Severity
8.8 of 10
Attack likelihood
20.6 % in 30 days
Fix
Fixed version known
Patch deadline
Agencies by 2 Dec 2026

Details

Advisory ID
GHSA-3926-2jvf-fg29
EU ID
EUVD-2026-21376
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-420, CWE-913, CWE-94
Published
10 Apr 2026
Last change
19 Nov 2026
Likelihood rank
Higher than 98 % of all rated vulnerabilities
Analysis status
Analyzed
Ecosystem
PyPI
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.

Affected products

Affected versions and the first fixed release

  • Litellm Through 2026-04-08; From 1.81.8 before 1.83.10. Fixed in 1.83.10
  • BerriAI LiteLLM Version bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f. No fixed version recorded
  • Red Hat Ansible Automation Platform From 2.0 before 2.6-9. Fixed in 2.6-9
  • Red Hat Openshift Ai From 3.3 before 3.3.4. Fixed in 3.3.4
  • Red Hat Openshift Lightspeed All versions. No fixed version recorded

Affected packages

Vulnerable version ranges and fixed releases

  • litellm PyPI, Affected from 1.81.8 before 1.83.10. Fixed in 1.83.10

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Exploit code

Public exploits and proofs of concept, handle with care

Related