Vulnerability · Published Apr 10, 2026 · Assigned by mitre

CVE-2026-40217

High 8.8

In plain English

A high-severity code injection in LiteLLM from BerriAI. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 17.0% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)17.0%top 2.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling2Nuclei, Public PoC

Official description

LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlitellm1.83.10GHSA-wxxx-gvqv-xp7p
PyPIlitellm1.83.10PYSEC-2026-2601

Affected products (as reported)

VendorProductVersions
BerriAI LiteLLM bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f

Weakness: CWE-420, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References