Skip to content
Vulnerability Intelligence

CVE-2026-40217

HighExploitedPublic exploit

LiteLLM has a sandbox escape in custom-code guardrail

Published May 11, 2026 · Updated Sep 10, 2026 · Also known as GHSA-wxxx-gvqv-xp7p, PYSEC-2026-2601

Key Facts

Patch immediately
  • CVE-2026-40217 is a high-severity vulnerability (CVSS 7.5 v4) affecting LiteLLM, airflow-3 (chainguard), litellm-1.83 (minimos) and 2 more products.
  • It is exploited in the wild, listed in Industry KEV feed since Jul 30, 2026. Public exploit code is available.
  • EPSS estimates a 3.4% probability of exploitation in the next 30 days.
  • Fixed versions are available, including airflow-3 3.2.2-r7, airflow-3 3.3.1-r0, ansible-automation-platform 26/lightspeed-chatbot-rhel9:1780102732.
  • Brandefense priority: patch immediately, because it is listed as exploited in the wild.

CVSS v4

7.5

CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS (30-day exploit likelihood)

3.4%

Higher than 88.6% of all scored CVEs

Exploited in the wild

Yes

1 catalog listing

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2026-40217 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

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

Known-Exploited Catalog Listings

CatalogAddedRemediation dueRansomware use
Industry KEV feedJul 30, 2026n/aNot reported

Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.

Affected Products

9 affected entries in total
ProductAffected versionsFixed in
LiteLLMLitellm>= 1.81.8, >= bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f2026-04-08
airflow-3chainguardSee advisory3.2.2-r7
litellm-1.83minimosSee advisory1.83.10-r0
ansible-automation-platformredhatSee advisory26/lightspeed-chatbot-rhel9:1780102732
rhoai/odh-llama-stack-core-rhel9:1782310008redhatSee advisoryn/a

Patched Releases

airflow-3

3.2.2-r7, 3.3.1-r0

ansible-automation-platform

26/lightspeed-chatbot-rhel9:1780102732

LiteLLM

1.83.10, 2026-04-08

litellm-1.83

1.83.10-r0

Timeline

  1. Publicly disclosed

    May 11, 2026

  2. Added to Industry KEV feed

    Jul 30, 2026

  3. Last updated

    Sep 10, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')
  • CWE-420 Unprotected Alternate Channel
  • CWE-913 Improper Control of Dynamically-Managed Code Resources

References

8 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2026-40217 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo