gcdRadar
archive/Patch now/AIR-2026-0653
closedclosed 10 Apr 2026Patch now2 Disclosed vulnerabilityAI

CVE-2026-40217: LiteLLM sandbox escape in custom-code guardrail

LiteLLM

LiteLLM contains a sandbox escape vulnerability in its custom-code guardrail endpoint allowing arbitrary code execution. The issue was patched in version 1.83.11 by replacing the hand-rolled sandbox with RestrictedPython.

disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why

CVSS
8.8
EPSS
0.17 · top 3% · 2026-11-13
fix status
Fix status unknown
first report
10 Apr 2026
last update
11 May 2026

Timeline · 2

  1. 10 Apr 2026CVE-2026-40217: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the…
  2. 11 May 2026CVE-2026-40217: LiteLLM has a sandbox escape in custom-code guardrail

Sources · 2

Advisories and databases

  1. 2026-04-10
  2. 2026-05-11
    CVE-2026-40217: LiteLLM has a sandbox escape in custom-code guardrail
    GitHub Advisory Database · github.com/advisories/GHSA-wxxx-gvqv-xp7p

Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.

Classification

AI role
Attack on AI
categories
Infrastructure vulnerability
severity
2 · Disclosed vulnerability
fix status
Fix status unknown
targets
Framework / tooling
owasp llm top 10
LLM03:2025 Supply Chain
mitre atlas
no technique for these categories
dates
happened 11 May 2026 · first reported 10 Apr 2026
origin
GitHub Advisory Database
Vulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
record
confidence 0.95 · created 2026-10-18 07:00Z · updated 2026-10-18 10:04Z

Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned

Copy a brief

This record as a short Markdown brief, for a ticket, a chat or a coding agent.

the brief as text
# CVE-2026-40217: LiteLLM sandbox escape in custom-code guardrail

https://gcdradar.vercel.app/incidents/cve-2026-40217-litellm-sandbox-escape-in-custom-code-guardra · AIR-2026-0653 · closed 2026-04-10

- Lane: Patch now
- Severity: 2 (Disclosed vulnerability)
- Fix status: Fix status unknown
- First reported: 2026-04-10 (happened 2026-05-11)
- AI role: Attack on AI
- Products: LiteLLM
- CVE ids: CVE-2026-40217
- CVSS: 8.8

## Summary

LiteLLM contains a sandbox escape vulnerability in its custom-code guardrail endpoint allowing arbitrary code execution. The issue was patched in version 1.83.11 by replacing the hand-rolled sandbox with RestrictedPython.

## What to do

No action recorded; read the sources below and the vendor's advisory.

## Latest updates

- 2026-05-11: CVE-2026-40217: LiteLLM has a sandbox escape in custom-code guardrail (https://github.com/advisories/GHSA-wxxx-gvqv-xp7p)
- 2026-04-10: CVE-2026-40217: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the… (https://nvd.nist.gov/vuln/detail/CVE-2026-40217)

## Sources

- 2026-04-10 NVD: CVE-2026-40217: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the… https://nvd.nist.gov/vuln/detail/CVE-2026-40217
- 2026-05-11 GitHub Advisory Database: CVE-2026-40217: LiteLLM has a sandbox escape in custom-code guardrail https://github.com/advisories/GHSA-wxxx-gvqv-xp7p

Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.

Related

  1. closed8.8
    LiteLLM CVE-2026-42271: LiteLLM Authenticated Command Execution via MCP Endpoints

    Patch now · Disclosed · since 25 Apr 2026 · updated 8 May 2026 · CVE-2026-42271

    AI
  2. closed8.6
    LiteLLM CVE-2026-42203: LiteLLM Server-Side Template Injection

    Patch now · Disclosed · since 24 Apr 2026 · updated 8 May 2026 · CVE-2026-42203

    AI
  3. closed9.8
    LiteLLM CVE-2026-42208: LiteLLM proxy API key verification SQL injection

    Patch now · Disclosed · since 24 Apr 2026 · updated 8 May 2026 · CVE-2026-42208

    AI
  4. closed
    AI
  5. closed
    AI
  6. closed9.4
    LiteLLM CVE-2026-35030: LiteLLM authentication bypass via OIDC cache collision

    Patch now · Disclosed · since 3 Apr 2026 · updated 6 Apr 2026 · CVE-2026-35030

    AI