{
 "id": "AIR-2026-0653",
 "slug": "cve-2026-40217-litellm-sandbox-escape-in-custom-code-guardra",
 "title": "CVE-2026-40217: LiteLLM sandbox escape in custom-code guardrail",
 "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.",
 "type": "attack_on_ai",
 "categories": [
  "infra_vuln"
 ],
 "severity": 2,
 "targets": [
  "framework_or_tooling"
 ],
 "products": [
  "LiteLLM"
 ],
 "incident_date": "2026-05-11",
 "incident_date_precision": "day",
 "first_reported": "2026-04-10",
 "sources": [
  {
   "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40217",
   "publisher": "NVD",
   "title": "CVE-2026-40217: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the…",
   "published_at": "2026-04-10"
  },
  {
   "url": "https://github.com/advisories/GHSA-wxxx-gvqv-xp7p",
   "publisher": "GitHub Advisory Database",
   "title": "CVE-2026-40217: LiteLLM has a sandbox escape in custom-code guardrail",
   "published_at": "2026-05-11"
  }
 ],
 "source_count": 2,
 "confidence": 0.95,
 "status": "published",
 "origin": "seed_ghsa",
 "tags": [
  "CVE-2026-40217",
  "sandbox-escape",
  "rce"
 ],
 "created_at": "2026-10-18T07:00:14.101Z",
 "updated_at": "2026-10-18T10:04:21.885Z"
}
