CVE-2026-40217
HighExploitedPublic exploitLiteLLM 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
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Jul 30, 2026 | n/a | Not 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| Product | Affected versions | Fixed in |
|---|---|---|
| LiteLLMLitellm | >= 1.81.8, >= bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f | 2026-04-08 |
| airflow-3chainguard | See advisory | 3.2.2-r7 |
| litellm-1.83minimos | See advisory | 1.83.10-r0 |
| ansible-automation-platformredhat | See advisory | 26/lightspeed-chatbot-rhel9:1780102732 |
| rhoai/odh-llama-stack-core-rhel9:1782310008redhat | See advisory | n/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
Publicly disclosed
May 11, 2026
Added to Industry KEV feed
Jul 30, 2026
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
- advisoryRHSA-2026:24866
- advisoryRHSA-2026:30056
- advisoryGHSA advisory
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-40217
- articlehttps://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable
FAQ
Common Questions.
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Affected: LiteLLM versions >= 1.81.8, >= bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f; airflow-3 (chainguard); litellm-1.83 (minimos), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Jul 30, 2026.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
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.
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