{"slug":"litellm-guardrail-sandbox-rce-cve-2026-40217","title":"LiteLLM proxy guardrail custom-code sandbox escape to RCE (CVE-2026-40217)","shortName":"LiteLLM","seoTitle":"LiteLLM (CVE-2026-40217): versions, exploitation & detection","summary":"Authenticated sandbox escape in BerriAI LiteLLM proxy custom-code guardrail testing (CVE-2026-40217, CWE-420/CWE-913/CWE-94). POST /guardrails/test_custom_code runs caller-supplied Python in a home-grown regex-filtered sandbox; escape gives code execution in the proxy process, which runs as root in the default Docker image. GHSA (7 May 2026): proxy-admin credential in default configurations. X41-2026-001 (8 Apr 2026): any authenticated user (CVSS 4.0 PR:L). MITRE CNA CVSS 3.1 8.8. GHSA Advisory Database CVSS 4.0 7.5; the repo GHSA scores 4.0 5.9. X41 scores 4.0 8.7. GHSA affected range >= 1.81.8 and < 1.83.10 with patched-versions >= 1.83.10, but GHSA text says Fixed in 1.83.11. This page recommends 1.83.11 or later for pip LiteLLM. Page patch status: Partly patched. Red Hat ADP on the CVE record (dateUpdated 2026-07-15T01:01:14.184Z, checked 18 Nov 2026) lists Lightspeed Core as defaultStatus affected with no versions array and no RHSA in solutions. Reported exploited (government: CISA KEV, 18 Nov 2026). BerriAI has published no exploitation statement. No public first-seen date. Priority Act now. No public PoC indexed.","isExample":false,"draft":false,"family":"litellm-guardrail-sandbox-rce-cve-2026-40217","kind":"single-product","aliases":["CVE-2026-40217","GHSA-wxxx-gvqv-xp7p","X41-2026-001","PYSEC-2026-2601","LiteLLM guardrail sandbox escape","BerriAI LiteLLM"],"publishedAt":"2026-11-18","updatedAt":"2026-11-18","patchStatus":"partly-patched","exploited":"reported","scores":{"cve":"CVE-2026-40217","cvss":{"cve":"CVE-2026-40217","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","scorer":"cna","sourceUrl":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","sourceDate":"2026-04-10","checkedDate":"2026-11-18","dateLabel":"CNA published","sourceLabel":"MITRE CNA CVSS 3.1 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), read from the CVE JSON on 18 Nov 2026. NVD (published 2026-04-10T14:16:36.307, lastModified 2026-11-18T21:17:58.927, status Modified) republishes that Secondary metric from cve@mitre.org and a second Secondary 8.8 from Red Hat. No NVD-produced Primary. GitHub Advisory Database CVSS 4.0 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). Repo GHSA CVSS 4.0 5.9 (CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N). X41 CVSS 4.0 8.7 (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N).","nvdPublishedDate":"2026-04-10"},"epss":{"cve":"CVE-2026-40217","score":0.1702,"percentile":0.97134,"date":"2026-11-18","sourceUrl":"https://api.first.org/data/v1/epss?cve=CVE-2026-40217","checkedDate":"2026-11-18"},"kev":{"cve":"CVE-2026-40217","listed":true,"dateAdded":"2026-11-18","dueDate":"2026-12-02","catalogVersion":"2026.11.18","sourceUrl":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","checkedDate":"2026-11-18"},"addedDate":"2026-11-18"},"priority":{"label":"act-now"},"managementSummary":{"what":"Authenticated sandbox escape in BerriAI LiteLLM proxy custom-code guardrail testing (CVE-2026-40217, MITRE CNA CVSS 3.1 8.8). POST /guardrails/test_custom_code runs caller-supplied Python; escape gives code execution in the proxy process, root in the default Docker image. GHSA: proxy-admin in default configurations. X41: any authenticated user (PR:L). CISA listed it in KEV on 18 Nov 2026, due 2 Dec 2026. Badge: Reported exploited (government: CISA KEV). Page patch status: Partly patched. pip LiteLLM has a vendor floor (1.83.11); Red Hat Lightspeed Core still has no listed fix in the CVE ADP. BerriAI has published no exploitation statement. No public first-seen date. No public PoC indexed.","action":"Upgrade LiteLLM to 1.83.11 or later. GHSA patched-versions lists >= 1.83.10 while GHSA text says Fixed in 1.83.11; this page does not treat 1.83.10 as the recommended fix. Red Hat AAP 2.6 and OpenShift AI 3.3 have named ADP unaffected versions; Lightspeed Core does not, so treat that bundle as unpatched until Red Hat lists a version or RHSA. Until then, block POST /guardrails/test_custom_code at the reverse proxy or API gateway, and restrict proxy-admin and user keys. If the proxy was reachable on an affected build, rotate admin or master keys and provider API keys stored in the proxy, and hunt access logs and process telemetry. CISA KEV due date is 2 Dec 2026 for covered federal agencies."},"seenInTheWild":[{"metric":"third-party-stated","value":"Listed in KEV on 18 Nov 2026 (due 2 Dec 2026)","observer":"CISA","date":"2026-11-18","method":"CISA KEV catalog 2026.11.18, released 2026-11-18T19:17:41.0354Z, 1,786 entries. cveID CVE-2026-40217. vendorProject BerriAI, product LiteLLM. vulnerabilityName: BerriAI LiteLLM Unprotected Alternate Channel Vulnerability. knownRansomwareCampaignUse Unknown. forensicTriage No. CWE-420. Required action notes cite GHSA-wxxx-gvqv-xp7p. CISA gives no first-seen date, actors or victims. BerriAI has published no exploitation statement. Badge: Reported exploited.","sourceUrl":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"}],"seenInTheWildLinks":[{"title":"CISA Known Exploited Vulnerabilities catalog (CVE-2026-40217 listed 18 Nov 2026)","url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","observer":"CISA","metric":"third-party-stated"},{"title":"CISA Adds Four Known Exploited Vulnerabilities to Catalog","url":"https://www.cisa.gov/news-events/alerts/2026/11/18/cisa-adds-four-known-exploited-vulnerabilities-catalog","observer":"CISA","metric":"third-party-stated"}],"whatChanged":{"date":"2026-11-18","items":[{"text":"New catalog page for BerriAI LiteLLM proxy guardrail custom-code sandbox escape (CVE-2026-40217).","headline":"New catalog page for LiteLLM CVE-2026-40217","section":"overview","date":"2026-11-18","kind":"page"},{"text":"CISA added CVE-2026-40217 to the Known Exploited Vulnerabilities catalog on 18 Nov 2026 (catalog 2026.11.18, released 2026-11-18T19:17:41.0354Z, 1,786 entries). Listed as BerriAI LiteLLM Unprotected Alternate Channel Vulnerability. dateAdded 2026-11-18, dueDate 2026-12-02. CWE-420. knownRansomwareCampaignUse Unknown. forensicTriage No. Required action notes cite GHSA-wxxx-gvqv-xp7p. CISA gives no first-seen date, actors or victims. Badge: Reported exploited (government: CISA KEV, 18 Nov 2026). BerriAI has published no exploitation statement, so this page stays at Reported exploited rather than a vendor-verified mark. CISA ADP SSVC on the CVE record (timestamp 2026-11-18T20:42:12.717870Z): Exploitation active, Automatable no, Technical Impact total. That SSVC row is not a substitute for a vendor statement.","headline":"CISA listed CVE-2026-40217 in KEV; Reported exploited, no vendor statement","section":"exploitation","date":"2026-11-18","sourceUrl":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","alsoSourceUrl":"https://www.cisa.gov/news-events/alerts/2026/11/18/cisa-adds-four-known-exploited-vulnerabilities-catalog"},{"text":"Precondition disagreement, shown above the fold: GHSA-wxxx-gvqv-xp7p (published 7 May 2026) says reaching POST /guardrails/test_custom_code requires a proxy-admin credential in default configurations (repo GHSA CVSS 4.0 PR:H). X41-2026-001 (8 Apr 2026) describes authenticated users and scores CVSS 4.0 PR:L. MITRE CNA CVSS 3.1 also uses PR:L. Version disagreement: GHSA affected >= 1.81.8 and < 1.83.10 with patched-versions >= 1.83.10, but GHSA text says Fixed in 1.83.11. This page recommends 1.83.11 or later (PyPI 1.83.11 uploaded 22 Apr 2026). Distinct from unauthenticated CVE-2026-42271 plus Starlette CVE-2026-48710 (SANS ISC, 16 Nov 2026), which targets MCP test endpoints, not this guardrail path.","headline":"GHSA proxy-admin vs X41 any authenticated user; recommend 1.83.11","section":"overview","date":"2026-11-18","sourceUrl":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","alsoSourceUrl":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/"},{"text":"Page patch status is Partly patched. BerriAI LiteLLM pip 1.83.11 is the recommended floor (GHSA text, 7 May 2026). Red Hat ADP on the CVE record (dateUpdated 2026-07-15T01:01:14.184Z, checked 18 Nov 2026) lists AAP 2.6 and OpenShift AI 3.3 with named unaffected container versions and RHSAs, and lists Lightspeed Core as defaultStatus affected with no versions array and no RHSA in solutions. Site totals count this page toward not fully patched, the same convention as NGINX2ROOT when a bundled product has no listed fix.","headline":"Partly patched: Lightspeed Core has no listed ADP fix","section":"fixed-versions","date":"2026-11-18","sourceUrl":"https://cveawg.mitre.org/api/cve/CVE-2026-40217"}]},"whatTheBugIs":"CVE-2026-40217 is a sandbox escape in BerriAI LiteLLM proxy custom-code guardrail testing. The MITRE CNA record (published 2026-04-10T13:43:23.147Z, reserved the same minute, checked 18 Nov 2026) says: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. CWE-420. CVSS 3.1 8.8, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The CNA affected object is the Docker digest bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f, which is the image X41 named as ghcr.io/berriai/litellm:main-latest at disclosure. The CNA reference is the X41 advisory. This page does not republish request bodies, bytecode steps, or usage commands.\n\nX41 D-Sec GmbH advisory X41-2026-001 (Markus Vervier, 8 Apr 2026): the LiteLLM proxy exposes /guardrails/test_custom_code so authenticated users can submit Python for guardrail testing. The endpoint tries to restrict dangerous operations with regex-based source filtering. X41: an authenticated attacker can run commands as the LiteLLM process user (root in the default Docker image). Vector: Authenticated HTTP API request. CWE-94. CVSS 4.0 8.7 (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N). At publication: CVE TBD, Confirmed Patched Versions TBD. X41 workarounds also say the endpoint requires authentication with the master key. This page records that wording next to the any-authenticated-user summary and does not pick one.\n\nBerriAI GHSA-wxxx-gvqv-xp7p (jaydns, published 2026-05-07T00:50:19Z, title Sandbox escape in custom-code guardrail): POST /guardrails/test_custom_code runs user-supplied Python inside a hand-rolled sandbox. Escape allows arbitrary code execution in the proxy process, which runs as root in the default Docker image. Quote: Reaching the endpoint requires a proxy-admin credential in default configurations. Affected versions: >= 1.81.8, < 1.83.10. Patched versions: >= 1.83.10. Patches text: Fixed in 1.83.11. The hand-rolled sandbox has been replaced with RestrictedPython. Upgrade to 1.83.11 or later. Workaround: block POST /guardrails/test_custom_code at your reverse proxy or API gateway. References: Patched release v1.83.10-stable. Repo GHSA severity Moderate, CVSS 4.0 5.9 (CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N), CWE-913.\n\nGitHub Advisory Database GHSA-wxxx-gvqv-xp7p (published 2026-05-11T16:17:23Z, github_reviewed_at the same instant, type reviewed, severity high): same GHSA text, including Fixed in 1.83.11 and the proxy-admin sentence. first_patched_version 1.83.10. CVSS 4.0 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) plus CVSS 3.1 8.8. CWE-420 and CWE-913. OSV / PYSEC-2026-2601 restates that range (introduced 1.81.8, fixed 1.83.10) and lists 1.81.8 through 1.83.9.\n\nThis page recommends 1.83.11 or later. PyPI litellm 1.83.11 was uploaded 2026-04-22T02:02:41.773544Z (not yanked). GitHub has v1.83.11-nightly (published 2026-04-22T06:47:13Z). There is no v1.83.11-stable tag (checked 18 Nov 2026). GitHub v1.83.10-stable was published 2026-04-27T17:01:01Z. PyPI 1.83.10 was uploaded 2026-04-19T02:36:25.274613Z. RestrictedPython replacement: BerriAI/litellm pull request 25818, merged 2026-04-15T23:50:10Z by yuneng-berri, authored by jaydns. This page does not copy that diff.\n\nNVD (checked 18 Nov 2026): published 2026-04-10T14:16:36.307, lastModified 2026-11-18T21:17:58.927, vulnStatus Modified. Secondary CVSS 3.1 8.8 from cve@mitre.org and from Red Hat. CWE-420 (MITRE) and CWE-94 (Red Hat). CISA Coordinator SSVC 2.0.3 timestamp 2026-11-18T20:42:12.717870Z: Exploitation active, Automatable no, Technical Impact total. FIRST EPSS API (checked 18 Nov 2026): score 0.1702 (17.02%), 97.134th percentile, model date 2026-11-18.\n\nRed Hat ADP on the CVE record (dateUpdated 2026-07-15T01:01:14.184Z) lists bundled components: Red Hat Ansible Automation Platform 2.6 package ansible-automation-platform-26/lightspeed-chatbot-rhel9 (defaultStatus affected; unaffected version 1780102732), Red Hat OpenShift AI 3.3 package rhoai/odh-llama-stack-core-rhel9 (defaultStatus affected; unaffected version 1782310008), and Lightspeed Core package redhat-user-workloads/lightspeed-stack (defaultStatus affected, no version list). Solutions name RHSA-2026:24866 (issued 9 Jun 2026) and RHSA-2026:30056 (issued 25 Jun 2026, RHOAI 3.3.4). Any other bundler: no statement yet. Never a not-affected mark without a sourced vendor sentence.\n\nExploitation. CISA listed CVE-2026-40217 in KEV on 18 Nov 2026 (catalog 2026.11.18, released 2026-11-18T19:17:41.0354Z, 1,786 entries, dateAdded 2026-11-18, dueDate 2026-12-02). CISA 18 Nov alert: CISA has added four new vulnerabilities to its Known Exploited Vulnerabilities (KEV) Catalog, based on evidence of active exploitation, and names CVE-2026-40217 BerriAI LiteLLM Unprotected Alternate Channel Vulnerability. Badge: Reported exploited (government: CISA KEV). BerriAI has published no exploitation statement. CISA gives no first-seen date, actors or victims. Never a vendor-verified ITW mark.\n\nThis is not CVE-2026-42271. SANS ISC (Johannes Ullrich, published 16 Nov 2026, last updated 2026-11-16 13:11:04 UTC) reported honeypot scans for /mcp-rest/test/tools/list that appear to chain LiteLLM CVE-2026-42271 with Starlette CVE-2026-48710. SANS: that LiteLLM path usually requires authentication, and the Starlette Host-header flaw (called BadHost there) is what the scans try to use to skip that check. Horizon3 published a write-up of that chain. That is a different endpoint class (MCP test endpoints), not POST /guardrails/test_custom_code. This page covers CVE-2026-40217 only. This page does not copy Host-header examples or request bodies.\n\nPoC. No /pocs entry. X41-2026-001 is cited as the advisory, not as a PoC. Badge: No public PoC indexed. This site does not copy exploit code. Never a vendor-verified ITW mark.","attackPath":{"caption":"High-level only. Not a reproduction guide. No request bodies, bytecode steps, or usage commands. Successful use runs in the LiteLLM proxy process, which is root in the default Docker image.","steps":[{"id":"reach","label":"Authenticated HTTP to the proxy","detail":"Network access to the LiteLLM proxy. GHSA (7 May 2026): a proxy-admin credential in default configurations. X41 (8 Apr 2026): an authenticated user; CVSS 4.0 PR:L. MITRE CNA CVSS 3.1 also uses PR:L. Both wordings are on this page."},{"id":"app","label":"Guardrail custom-code test endpoint","detail":"GHSA and X41 name POST /guardrails/test_custom_code. Conceptual impact class only. No request body here."},{"id":"unsafe","label":"Home-grown sandbox is escaped","detail":"GHSA: user-supplied Python runs in a hand-rolled sandbox. X41: regex-based source filtering. MITRE CNA: bytecode rewriting. No internals here."},{"id":"exec","label":"Code in the proxy process","detail":"GHSA and X41: arbitrary code execution in the LiteLLM proxy process. This page does not name follow-on binaries."},{"id":"shell","label":"Root in the default Docker image","detail":"GHSA and X41: the default Docker image runs that process as root. That is a default-image fact, not a claim about every install."}]},"exploitation":{"kev":{"listed":true,"date":"2026-11-18","url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","note":"CISA listed CVE-2026-40217 (BerriAI LiteLLM Unprotected Alternate Channel Vulnerability) on 18 Nov 2026, due 2 Dec 2026. Catalog 2026.11.18 (released 2026-11-18T19:17:41.0354Z, 1,786 entries). CWE-420. knownRansomwareCampaignUse Unknown. forensicTriage No. Required action notes cite GHSA-wxxx-gvqv-xp7p. CISA gives no first-seen date, actors or victims. Verified 18 Nov 2026."},"firstSeen":{"date":"2026-11-18","source":"CISA KEV","note":"Reported exploited (government: CISA KEV, 18 Nov 2026). CISA listed CVE-2026-40217. CISA gives no first-seen date, actors or victims. BerriAI has published no exploitation statement. Badge: Reported exploited. Never a vendor-verified ITW mark. No public first-seen date.","dateLabel":"Reported"},"vendorStatements":[{"vendor":"BerriAI","date":"2026-05-07","statement":"Reaching the endpoint requires a proxy-admin credential in default configurations.","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","retracted":false},{"vendor":"X41 D-Sec","date":"2026-04-08","statement":"An authenticated attacker can exploit this vulnerability to execute arbitrary commands as the user the LiteLLM process runs as (root in the default Docker image).","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","retracted":false},{"vendor":"CISA","date":"2026-11-18","statement":"CISA KEV catalog 2026.11.18 (released 2026-11-18T19:17:41.0354Z, 1,786 entries) lists CVE-2026-40217. vulnerabilityName: BerriAI LiteLLM Unprotected Alternate Channel Vulnerability. dateAdded 2026-11-18. dueDate 2026-12-02. knownRansomwareCampaignUse Unknown. forensicTriage No. CWE-420. Required action notes cite GHSA-wxxx-gvqv-xp7p. CISA gives no first-seen date, actors or victims.","url":"https://www.cisa.gov/news-events/alerts/2026/11/18/cisa-adds-four-known-exploited-vulnerabilities-catalog","retracted":false}],"attributionDispute":"GHSA-wxxx-gvqv-xp7p (7 May 2026): reaching POST /guardrails/test_custom_code requires a proxy-admin credential in default configurations (repo GHSA CVSS 4.0 PR:H). X41-2026-001 (8 Apr 2026): authenticated users, and CVSS 4.0 PR:L; X41 workarounds also say the endpoint requires the master key. MITRE CNA CVSS 3.1 uses PR:L. This page records both wordings and does not pick one. Badge: Reported exploited (government: CISA KEV, 18 Nov 2026). BerriAI has published no exploitation statement."},"timeline":[{"date":"2026-02-13","event":"X41-2026-001 timeline: issue identified, PoC created. This page does not copy that PoC.","source":{"title":"X41-2026-001: Guardrail Sandbox Escape in LiteLLM","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","publisher":"X41 D-Sec"},"kind":"other","addedDate":"2026-11-18"},{"date":"2026-02-18","event":"X41-2026-001 timeline: LiteLLM acknowledged, giving an initial ETA for a fix by the end of next week.","source":{"title":"X41-2026-001: Guardrail Sandbox Escape in LiteLLM","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","publisher":"X41 D-Sec"},"kind":"vendor","addedDate":"2026-11-18"},{"date":"2026-04-08","event":"X41 D-Sec published advisory X41-2026-001 (Markus Vervier). Guardrail sandbox escape at /guardrails/test_custom_code. Authenticated HTTP API request. CVSS 4.0 8.7 (PR:L). CVE TBD. Confirmed Patched Versions TBD. Distros maximum embargo expired, publication.","source":{"title":"X41-2026-001: Guardrail Sandbox Escape in LiteLLM","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","publisher":"X41 D-Sec"},"kind":"disclosure","key":true,"addedDate":"2026-11-18"},{"date":"2026-04-10T13:43:23.147Z","event":"MITRE CNA published CVE-2026-40217. CWE-420. CVSS 3.1 8.8 (PR:L). Description: LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. Affected object is Docker digest bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f.","source":{"title":"CVE-2026-40217","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","publisher":"MITRE CNA"},"kind":"advisory","key":true,"addedDate":"2026-11-18"},{"date":"2026-04-10T14:16:36.307Z","event":"NVD published CVE-2026-40217 (later lastModified 2026-11-18T21:17:58.927, status Modified when read 18 Nov 2026). Secondary CVSS 3.1 8.8 from cve@mitre.org. No NVD-produced Primary.","source":{"title":"NVD CVE-2026-40217","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40217","publisher":"NIST NVD"},"kind":"advisory","addedDate":"2026-11-18"},{"date":"2026-04-10T15:01:29.063Z","event":"Red Hat ADP timeline on the CVE record: Reported to Red Hat.","source":{"title":"CVE-2026-40217 (Red Hat ADP)","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","publisher":"Red Hat"},"kind":"other","addedDate":"2026-11-18"},{"date":"2026-04-15T23:50:10Z","event":"BerriAI/litellm pull request 25818 merged: replace the custom_code sandbox with RestrictedPython. GHSA later names RestrictedPython as the fix. This page does not copy the diff.","source":{"title":"fix(guardrails): replace custom_code sandbox with RestrictedPython","url":"https://github.com/BerriAI/litellm/pull/25818","publisher":"BerriAI"},"kind":"patch","key":true,"addedDate":"2026-11-18"},{"date":"2026-04-19T02:36:25.274613Z","event":"PyPI uploaded litellm 1.83.10. GHSA patched-versions lists >= 1.83.10. GHSA text still says Fixed in 1.83.11. This page does not treat 1.83.10 as the recommended fix.","source":{"title":"litellm 1.83.10 on PyPI","url":"https://pypi.org/project/litellm/1.83.10/","publisher":"PyPI"},"kind":"patch","addedDate":"2026-11-18"},{"date":"2026-04-22T02:02:41.773544Z","event":"PyPI uploaded litellm 1.83.11 (not yanked). GHSA text: Upgrade to 1.83.11 or later. This page recommends that pip version or later.","source":{"title":"litellm 1.83.11 on PyPI","url":"https://pypi.org/project/litellm/1.83.11/","publisher":"PyPI"},"kind":"patch","key":true,"addedDate":"2026-11-18"},{"date":"2026-04-22T06:47:13Z","event":"GitHub published tag v1.83.11-nightly. There is no v1.83.11-stable tag (checked 18 Nov 2026).","source":{"title":"v1.83.11-nightly","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.11-nightly","publisher":"BerriAI"},"kind":"patch","addedDate":"2026-11-18"},{"date":"2026-04-27T17:01:01Z","event":"GitHub published v1.83.10-stable. GHSA references that tag as Patched release. GHSA text still says Fixed in 1.83.11.","source":{"title":"v1.83.10-stable","url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable","publisher":"BerriAI"},"kind":"patch","key":true,"addedDate":"2026-11-18"},{"date":"2026-05-07T00:50:19Z","event":"jaydns published GHSA-wxxx-gvqv-xp7p on BerriAI/litellm. Proxy-admin credential in default configurations. Affected >= 1.81.8 and < 1.83.10. Patched-versions >= 1.83.10. Text: Fixed in 1.83.11. Repo CVSS 4.0 5.9, CWE-913.","source":{"title":"Sandbox escape in custom-code guardrail (GHSA-wxxx-gvqv-xp7p)","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","publisher":"BerriAI"},"kind":"advisory","key":true,"addedDate":"2026-11-18"},{"date":"2026-05-11T16:17:23Z","event":"GitHub Advisory Database published the reviewed GHSA-wxxx-gvqv-xp7p record. Severity high. CVSS 4.0 7.5 and CVSS 3.1 8.8. first_patched_version 1.83.10. CWE-420 and CWE-913.","source":{"title":"GHSA-wxxx-gvqv-xp7p","url":"https://github.com/advisories/GHSA-wxxx-gvqv-xp7p","publisher":"GitHub Advisory Database"},"kind":"advisory","addedDate":"2026-11-18"},{"date":"2026-06-09","event":"Red Hat issued RHSA-2026:24866, Ansible Automation Platform 2.6 container update. CVE list includes CVE-2026-40217. Fixes include Bugzilla 2457301.","source":{"title":"RHSA-2026:24866","url":"https://access.redhat.com/errata/RHSA-2026:24866","publisher":"Red Hat"},"kind":"vendor","addedDate":"2026-11-18"},{"date":"2026-06-25","event":"Red Hat issued RHSA-2026:30056, RHOAI 3.3.4. CVE list includes CVE-2026-40217. Advisory lists rhoai/odh-llama-stack-core-rhel9 image digests.","source":{"title":"RHSA-2026:30056","url":"https://access.redhat.com/errata/RHSA-2026:30056","publisher":"Red Hat"},"kind":"vendor","addedDate":"2026-11-18"},{"date":"2026-07-15T01:01:14.184Z","event":"Red Hat ADP on the CVE record last updated. Lists AAP 2.6 lightspeed-chatbot-rhel9 and OpenShift AI 3.3 odh-llama-stack-core-rhel9 as affected with named unaffected container versions, plus Lightspeed Core as affected with no version list.","source":{"title":"CVE-2026-40217 (Red Hat ADP)","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","publisher":"Red Hat"},"kind":"vendor","addedDate":"2026-11-18"},{"date":"2026-11-16T13:11:04Z","event":"SANS ISC (Johannes Ullrich) reported honeypot scans for /mcp-rest/test/tools/list chaining CVE-2026-42271 with Starlette CVE-2026-48710. That is a different LiteLLM bug. This page covers CVE-2026-40217 only.","source":{"title":"Scans for LiteLLM/Starlette (CVE-2026-42271, CVE-2026-48710)","url":"https://isc.sans.edu/diary/33522","publisher":"SANS ISC"},"kind":"other","addedDate":"2026-11-18"},{"date":"2026-11-18T19:17:41.0354Z","event":"CISA KEV catalog 2026.11.18 released (1,786 entries). CVE-2026-40217 listed. dateAdded 2026-11-18, dueDate 2026-12-02. CWE-420. knownRansomwareCampaignUse Unknown. forensicTriage No.","source":{"title":"CISA Known Exploited Vulnerabilities catalog JSON","url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","publisher":"CISA"},"kind":"kev","key":true,"addedDate":"2026-11-18"},{"date":"2026-11-18","event":"CISA alert: CISA Adds Four Known Exploited Vulnerabilities to Catalog. Names CVE-2026-40217 BerriAI LiteLLM Unprotected Alternate Channel Vulnerability. Based on evidence of active exploitation. CISA gives no first-seen date, actors or victims.","source":{"title":"CISA Adds Four Known Exploited Vulnerabilities to Catalog","url":"https://www.cisa.gov/news-events/alerts/2026/11/18/cisa-adds-four-known-exploited-vulnerabilities-catalog","publisher":"CISA"},"kind":"advisory","key":true,"addedDate":"2026-11-18"},{"date":"2026-11-18T20:42:12.717870Z","event":"CISA ADP SSVC on CVE-2026-40217: Exploitation active, Automatable no, Technical Impact total. This is not a substitute for a vendor exploitation statement.","source":{"title":"CVE-2026-40217 (CISA ADP Vulnrichment)","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","publisher":"CISA ADP"},"kind":"other","addedDate":"2026-11-18"}],"openNotes":[{"title":"GHSA patched-versions lists 1.83.10; GHSA text says Fixed in 1.83.11","detail":"GHSA-wxxx-gvqv-xp7p affected versions are >= 1.81.8 and < 1.83.10, with patched-versions >= 1.83.10 and first_patched_version 1.83.10. The same advisory text says Fixed in 1.83.11 and Upgrade to 1.83.11 or later, and references v1.83.10-stable. PyPI 1.83.10 uploaded 19 Apr 2026; PyPI 1.83.11 uploaded 22 Apr 2026; GitHub v1.83.10-stable published 27 Apr 2026; GitHub v1.83.11-nightly published 22 Apr 2026; no v1.83.11-stable tag on 18 Nov 2026. This page recommends 1.83.11 or later and does not guess whether a given 1.83.10 build contains RestrictedPython.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://pypi.org/project/litellm/1.83.11/","date":"2026-04-22","publisher":"PyPI"},{"url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable","date":"2026-04-27","publisher":"BerriAI"}]},{"title":"Who can call the endpoint: proxy-admin vs any authenticated user","detail":"GHSA: Reaching the endpoint requires a proxy-admin credential in default configurations (repo GHSA PR:H). X41 summary: authenticated users (CVSS 4.0 PR:L); X41 workarounds also say the endpoint requires the master key. MITRE CNA CVSS 3.1 uses PR:L. This page records both wordings above the fold and does not pick one.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}]},{"title":"Repo GHSA CVSS 4.0 5.9 vs GitHub Advisory Database CVSS 4.0 7.5","detail":"The BerriAI repo advisory scores CVSS 4.0 5.9 with VC:L, VI:L, VA:H, severity Moderate. GitHub Advisory Database scores CVSS 4.0 7.5 with VC:H, VI:H, VA:H, severity high, plus CVSS 3.1 8.8. X41 scores CVSS 4.0 8.7. This page stores the MITRE CNA CVSS 3.1 8.8 and keeps the 4.0 figures dated.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://github.com/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-11","publisher":"GitHub Advisory Database"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}]}],"defenderActions":[{"title":"Upgrade LiteLLM to 1.83.11 or later","detail":"GHSA text: Upgrade to 1.83.11 or later. The hand-rolled sandbox has been replaced with RestrictedPython. PyPI litellm 1.83.11 uploaded 22 Apr 2026. GHSA patched-versions lists >= 1.83.10 and references v1.83.10-stable (27 Apr 2026); this page still recommends 1.83.11 or later because the GHSA prose names that floor.","priority":"now","links":[{"label":"GHSA-wxxx-gvqv-xp7p","href":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p"},{"label":"litellm 1.83.11 on PyPI","href":"https://pypi.org/project/litellm/1.83.11/"}]},{"title":"If you cannot upgrade yet, block POST /guardrails/test_custom_code at the gateway","detail":"GHSA workaround: block POST /guardrails/test_custom_code at your reverse proxy or API gateway. X41: deny requests to /guardrails/test_custom_code at the reverse proxy. This is an interim stopgap, not a substitute for 1.83.11.","priority":"now","links":[{"label":"GHSA-wxxx-gvqv-xp7p","href":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p"},{"label":"X41-2026-001","href":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/"}]},{"title":"Restrict proxy-admin and user keys, and hunt if the proxy was exposed","detail":"GHSA: a proxy-admin credential in default configurations. X41: restrict the master key to trusted administrators, limit who can reach the admin interface, and avoid running as root. If an affected build was reachable, rotate admin or master keys and provider API keys stored in the proxy, and hunt access logs plus process telemetry from 8 Apr 2026.","priority":"now","links":[{"label":"X41-2026-001","href":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/"}]}],"detection":[{"title":"POST requests to /guardrails/test_custom_code in reverse-proxy or LiteLLM access logs","detail":"GHSA and X41 name POST /guardrails/test_custom_code. Hunt reverse-proxy or LiteLLM access logs for that path, especially from unfamiliar addresses or keys. Path hunt only. A request is a lead, not proof of code execution, and not a payload detector. Do not send a crafted request as a test.","logSource":"Reverse-proxy or LiteLLM access logs in front of the proxy","kind":"generic","group":"web-proxy","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","described":true},{"title":"Unexpected children or shells from the LiteLLM Python process","detail":"Site hunting guidance (18 Nov 2026), not a vendor detector. Hunt EDR or process telemetry for the LiteLLM Python process spawning a shell or another unexpected child. GHSA and X41: code runs in that proxy process (root in the default Docker image). No public process signature is indexed. A hit is a lead, not proof of this CVE.","logSource":"EDR or host process telemetry on the LiteLLM proxy host","kind":"generic","group":"edr","date":"2026-11-18","dateKind":"checked","fold":"compromise-check","described":true},{"title":"ProjectDiscovery Nuclei detector CVE-2026-40217 (intrusive endpoint check)","detail":"A Nuclei detector at http/cves/2026/CVE-2026-40217.yaml was live on 18 Nov 2026. Detection only. Not a /pocs entry. This site does not copy the request body. The YAML title says LiteLLM < 1.25.0, which disagrees with the GHSA affected range (>= 1.81.8 and < 1.83.10). metadata.verified is true on that file; that is Nuclei's field, not a vuln2shell RCE validation. Do not run the detector against systems you do not own.","logSource":"Nuclei detector inventory (intrusive HTTP check)","kind":"generic","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml","date":"2026-11-18","dateKind":"checked"},{"title":"No Sigma, Suricata, or YARA signatures indexed as of 18 Nov 2026","detail":"No public Sigma, Suricata, or YARA signatures for CVE-2026-40217 were indexed for this page on 18 Nov 2026. The six-format coverage table is empty for those languages. The Nuclei detector above is an intrusive HTTP check, not one of those signature formats.","logSource":"Public signature inventory (none indexed in Sigma, Suricata, or YARA)","kind":"generic","date":"2026-11-18","dateKind":"checked"}],"detectionRules":[],"detectionLinks":[{"title":"Nuclei detector CVE-2026-40217","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml","author":"ritikchaddha (ProjectDiscovery nuclei-templates)","date":"2026-11-18","note":"Checked 18 Nov 2026. Detection only. Intrusive HTTP check of POST /guardrails/test_custom_code. This site does not copy the request body. Not a /pocs entry."}],"retrohunt":{"summary":"If a LiteLLM proxy on an affected build was reachable from an untrusted network, hunt reverse-proxy or LiteLLM access logs for POST /guardrails/test_custom_code from 8 Apr 2026 (X41 publication). CISA listed the CVE in KEV on 18 Nov 2026 without a first-seen day. A path hit is a lead, not proof.","lookback":{"from":"2026-04-08","basis":"public-disclosure","rationale":"The bug was public in X41-2026-001 on 8 Apr 2026 and as CVE-2026-40217 on 10 Apr 2026. CISA listed it in KEV on 18 Nov 2026 with no first-seen date. Hunt from disclosure. First calendar day of in-the-wild use: not verified.","sources":[{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2026-11-18","publisher":"CISA"}],"searchLine":"Search from 8 Apr 2026 (X41-2026-001 publication). CISA's KEV listing is dated 18 Nov 2026 and names no first calendar day of use."},"logSources":[{"name":"Reverse-proxy or LiteLLM access logs in front of the proxy","why":"GHSA and X41 name POST /guardrails/test_custom_code. Path hunt only.","required":true},{"name":"EDR or host process telemetry on the LiteLLM proxy host","why":"Site hunting guidance (18 Nov 2026) for shells or unexpected children from the LiteLLM Python process. Not a vendor IOC.","required":false}],"steps":[{"title":"Preserve access logs covering 8 Apr 2026 onward","detail":"Keep reverse-proxy or LiteLLM access logs before upgrade. Search for POST requests to /guardrails/test_custom_code. Do not send crafted requests.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"}]}],"queries":[],"artefacts":[{"kind":"web-log","value":"POST /guardrails/test_custom_code","detail":"GHSA (7 May 2026) and X41 (8 Apr 2026) name this path. Path only. Not a payload.","sourceUrl":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","sourceDate":"2026-05-07"}],"hitMeaning":[{"level":"attempt","detail":"An unexpected POST to /guardrails/test_custom_code from 8 Apr 2026, with no child-process evidence."},{"level":"likely-compromise","detail":"Those path hits plus a LiteLLM Python process spawning a shell or another unexpected child on a host that was on an affected build and reachable from an untrusted network."},{"level":"compromise","detail":"Evidence that attacker-controlled code ran as the LiteLLM proxy process. BerriAI and CISA have not published a sourced in-the-wild persistence path. First calendar day of in-the-wild use: not verified.","label":"Compromise (your evidence)"}],"nextSteps":[{"title":"Upgrade to 1.83.11 and keep the test endpoint closed until then","detail":"Install 1.83.11 or later. Until then, block POST /guardrails/test_custom_code at the gateway.","priority":"now","links":[{"label":"litellm 1.83.11 on PyPI","href":"https://pypi.org/project/litellm/1.83.11/"}]},{"title":"Rotate keys stored in the proxy if it was exposed","detail":"If an affected build was reachable, rotate admin or master keys and provider API keys stored in the proxy. Preserve logs before restore or upgrade.","links":[{"label":"X41-2026-001","href":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/"}]}],"limits":["CISA has not published indicators of compromise or a first calendar day of use.","BerriAI has published no exploitation statement.","A POST to /guardrails/test_custom_code is not proof of code execution.","No Sigma, Suricata, or YARA signatures were indexed as of 18 Nov 2026.","No public PoC is indexed."],"sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2026-11-18","publisher":"CISA"}],"updatedAt":"2026-11-18"},"amIAffected":{"summary":"LiteLLM proxy builds in the GHSA range >= 1.81.8 and < 1.83.10 are in scope. This page recommends 1.83.11 or later. Inventory the installed pip or image version and who can reach the proxy, including POST /guardrails/test_custom_code. Do not send a test POST. GHSA: proxy-admin in default configurations. X41: any authenticated user. Record both preconditions rather than picking one.","checks":[{"id":"v2s-aia-litellm-guardrail-sandbox-rce-cve-2026-40217-version-1","kind":"version","title":"Record the installed LiteLLM version","detail":"GHSA affected range is >= 1.81.8 and < 1.83.10. Record the version from pip, the container tag, or the running UI. This is inventory only. Do not send a crafted request.","command":"pip show litellm","affectedMeans":"The recorded version is >= 1.81.8 and < 1.83.10, or the running image matches the X41/CNA digest bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f.","fixedMeans":"The recorded version is 1.83.11 or later, or LiteLLM is not installed. This page recommends 1.83.11 or later and does not treat 1.83.10 as the recommended fix.","notes":"GHSA patched-versions lists >= 1.83.10 while GHSA text says Fixed in 1.83.11. PyPI 1.83.11 uploaded 22 Apr 2026. GitHub v1.83.10-stable published 27 Apr 2026.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://pypi.org/project/litellm/1.83.11/","date":"2026-04-22","publisher":"PyPI"}]},{"id":"v2s-aia-litellm-guardrail-sandbox-rce-cve-2026-40217-package-2","kind":"package","title":"Record container tags and Red Hat bundled images","detail":"If you run the Docker image or a Red Hat bundle, record the tag or digest. Red Hat ADP names AAP 2.6 lightspeed-chatbot-rhel9 (unaffected 1780102732) and OpenShift AI 3.3 odh-llama-stack-core-rhel9 (unaffected 1782310008). Lightspeed Core (redhat-user-workloads/lightspeed-stack) is defaultStatus affected with no versions array and no RHSA in solutions. Any other bundler: no statement yet.","command":"Record the LiteLLM image tag or digest from the running container, Helm release, or platform bundle, and compare pip or tag 1.83.11, AAP tag 1780102732, and OpenShift AI tag 1782310008. For Lightspeed Core, record the running package; this ADP lists no fixed version.","affectedMeans":"The image is in the GHSA range, matches the X41/CNA digest, is an ADP-listed AAP or OpenShift AI bundle below the named unaffected version, or is Lightspeed Core with no listed ADP fix.","fixedMeans":"pip or tag is 1.83.11 or later, or the AAP or OpenShift AI bundle is at or above the named unaffected version, or LiteLLM is not installed. Lightspeed Core has no listed ADP fix, so this check cannot mark that bundle fixed.","notes":"Do not infer not-affected for a bundler that has not published a statement. Do not treat Lightspeed Core as patched from this ADP object.","sources":[{"url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","date":"2026-07-15","publisher":"Red Hat ADP"}]},{"id":"v2s-aia-litellm-guardrail-sandbox-rce-cve-2026-40217-config-3","kind":"config","title":"Record who can reach the proxy and who holds admin or user keys","detail":"GHSA: proxy-admin credential in default configurations. X41: authenticated users, and workarounds that restrict the master key. Record whether networks other than a trusted admin network can complete a connection to the proxy, and which keys exist. Do not authenticate or submit a test body.","command":"Record the listener addresses, reverse-proxy ACLs, and edge rules that govern the LiteLLM proxy, whether POST /guardrails/test_custom_code is reachable, and which proxy-admin, master, or user keys exist.","affectedMeans":"LiteLLM is on an affected build and the proxy, including the guardrail test path, is reachable from a network that is not a trusted admin network, or untrusted holders have a proxy-admin, master, or user key.","fixedMeans":"Only trusted admin networks can reach the proxy (workaround), POST /guardrails/test_custom_code is denied at the gateway (GHSA/X41 stopgap), or 1.83.11 or later is installed.","notes":"Network limits and the gateway deny rule are not a software fix. Still upgrade to 1.83.11. This page records both the GHSA proxy-admin wording and the X41 authenticated-user wording.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}]},{"id":"v2s-aia-litellm-guardrail-sandbox-rce-cve-2026-40217-exposure-4","kind":"exposure","title":"Search your own ranges for the Nuclei-sourced LiteLLM favicon hash","detail":"The ProjectDiscovery Nuclei detector for CVE-2026-40217 (checked 18 Nov 2026) lists shodan-query http.favicon.hash:439373620. Inventory only. Scope the search to your ranges. A hit is not proof of this CVE.","command":"shodan search 'http.favicon.hash:439373620 net:<your-range>'","affectedMeans":"A host in your range serves that favicon hash and, after inventory, is an affected LiteLLM proxy.","fixedMeans":"No hosts in your range match, or matching hosts are 1.83.11 or later.","notes":"Fingerprint from the Nuclei YAML metadata, not from BerriAI. Do not send a POST to /guardrails/test_custom_code as a test.","sources":[{"url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40217.yaml","date":"2026-11-18","publisher":"ProjectDiscovery"}]}],"limits":["Do not send a crafted POST to /guardrails/test_custom_code as a test.","GHSA and X41 disagree on whether a proxy-admin key is required; record both.","Do not treat 1.83.10 as the recommended fix while GHSA text names 1.83.11.","Do not infer not-affected for a bundler with no statement."],"sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}],"updatedAt":"2026-11-18","addedDate":"2026-11-18"},"mitigations":{"summary":"GHSA published one interim step for operators who cannot upgrade right away: block POST /guardrails/test_custom_code at the reverse proxy or API gateway. X41 also describes restricting the master key, limiting who can reach the admin interface, and avoiding a root process. Patch remains 1.83.11 or later on this page.","items":[{"title":"Block POST /guardrails/test_custom_code at the reverse proxy or API gateway","detail":"GHSA workaround: If upgrading is not immediately possible, block POST /guardrails/test_custom_code at your reverse proxy or API gateway. X41: deny requests to /guardrails/test_custom_code at the reverse proxy.","limits":"This is an interim stopgap until 1.83.11, not a software fix. It does not patch the sandbox. Still upgrade.","verify":"The reverse-proxy or API-gateway config denies POST /guardrails/test_custom_code. Confirm from the config file. Do not send a crafted POST as a test.","source":{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"}},{"title":"Restrict master and user keys, and do not expose the admin interface","detail":"X41 workarounds: ensure the master key is only known to trusted administrators and is not shared with regular API consumers; use network-level controls to limit access to the LiteLLM admin port to trusted hosts only; avoid running LiteLLM as root in the default Docker image. GHSA still names a proxy-admin credential in default configurations.","limits":"Key and network limits are compensating controls, not a software fix. X41 published these while Confirmed Patched Versions were TBD. Still upgrade to 1.83.11.","verify":"Master and proxy-admin keys are held only by trusted administrators, the admin listener is not reachable from untrusted networks, and the running process user is recorded. Confirm from config and process inventory.","source":{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}}],"updatedAt":"2026-11-18","addedDate":"2026-11-18"},"response":{"summary":"If a LiteLLM proxy was reachable while on an affected build, treat it as exposed. Upgrade to 1.83.11 or later, keep POST /guardrails/test_custom_code blocked until then, rotate admin or master keys and provider API keys stored in the proxy, and review access logs and process telemetry from 8 Apr 2026. BerriAI and CISA have not published persistence paths or IOCs.","containment":[{"title":"Upgrade LiteLLM to 1.83.11 or later","detail":"Install pip 1.83.11 or later, or a later image that includes that floor. GHSA text names RestrictedPython as the replacement sandbox.","sources":[{"url":"https://pypi.org/project/litellm/1.83.11/","date":"2026-04-22","publisher":"PyPI"}]},{"title":"Keep the guardrail test endpoint closed until upgraded","detail":"Until 1.83.11 is installed, deny POST /guardrails/test_custom_code at the reverse proxy or API gateway.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"}]},{"title":"Review access logs and host telemetry","detail":"Hunt POST requests to /guardrails/test_custom_code and LiteLLM Python process children from 8 Apr 2026. A hit is a lead, not proof.","sources":[{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}]}],"rotate":[{"item":"LiteLLM proxy-admin or master keys, and provider API keys stored in the proxy","reason":"If code ran, it ran as the LiteLLM proxy process, including access to keys that process could read. Rotate those secrets on hosts that were reachable while unpatched. Generic IR; BerriAI did not publish a credential list. X41 names the master key as the authentication material for the endpoint.","generic":true,"sources":[{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}]}],"evidence":[{"title":"Installed LiteLLM version from before the upgrade","detail":"Keep the recorded pip version, image tag, or digest so you can show whether the host was in the GHSA range or matched the X41/CNA digest.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"}]},{"title":"Reverse-proxy or LiteLLM access logs covering 8 Apr 2026 onward","detail":"Keep copies from the exposure window. A POST to /guardrails/test_custom_code is a lead, not proof. CISA and BerriAI have not published indicators of compromise.","sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"}]},{"title":"Host process inventory on the LiteLLM proxy host","detail":"Keep EDR or host snapshots covering the LiteLLM Python process and child processes from 8 Apr 2026. General IR.","generic":true,"sources":[{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"}]}],"limits":["BerriAI has published no persistence path or IOC list.","CISA gives no first-seen date, actors or victims.","A log anomaly is not proof of this CVE.","No public PoC is indexed.","First calendar day of in-the-wild use: not verified."],"sources":[{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","publisher":"BerriAI"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","publisher":"X41 D-Sec"},{"url":"https://www.cisa.gov/news-events/alerts/2026/11/18/cisa-adds-four-known-exploited-vulnerabilities-catalog","date":"2026-11-18","publisher":"CISA"}],"updatedAt":"2026-11-18","addedDate":"2026-11-18"},"bulletins":[{"vendor":"BerriAI","title":"Sandbox escape in custom-code guardrail (GHSA-wxxx-gvqv-xp7p)","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","cve":"CVE-2026-40217"},{"vendor":"X41 D-Sec","title":"X41-2026-001: Guardrail Sandbox Escape in LiteLLM","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","cve":"CVE-2026-40217"},{"vendor":"Red Hat","title":"RHSA-2026:24866 (Ansible Automation Platform 2.6)","url":"https://access.redhat.com/errata/RHSA-2026:24866","date":"2026-06-09","cve":"CVE-2026-40217"},{"vendor":"Red Hat","title":"RHSA-2026:30056 (RHOAI 3.3.4)","url":"https://access.redhat.com/errata/RHSA-2026:30056","date":"2026-06-25","cve":"CVE-2026-40217"}],"coverage":[{"title":"CISA Adds Four Known Exploited Vulnerabilities to Catalog","publisher":"CISA","url":"https://www.cisa.gov/news-events/alerts/2026/11/18/cisa-adds-four-known-exploited-vulnerabilities-catalog","date":"2026-11-18","type":"government","addedDate":"2026-11-18"},{"title":"CISA Known Exploited Vulnerabilities catalog JSON (CVE-2026-40217 listed; catalog 2026.11.18)","publisher":"CISA","url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2026-11-18","type":"government","addedDate":"2026-11-18"},{"title":"Sandbox escape in custom-code guardrail (GHSA-wxxx-gvqv-xp7p)","publisher":"BerriAI","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-07","type":"vendor","addedDate":"2026-11-18"},{"title":"GHSA-wxxx-gvqv-xp7p","publisher":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-wxxx-gvqv-xp7p","date":"2026-05-11","type":"vendor","addedDate":"2026-11-18"},{"title":"X41-2026-001: Guardrail Sandbox Escape in LiteLLM","publisher":"X41 D-Sec","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","date":"2026-04-08","type":"research","addedDate":"2026-11-18"},{"title":"CVE-2026-40217","publisher":"MITRE CNA","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","date":"2026-04-10","type":"vendor","addedDate":"2026-11-18"},{"title":"NVD CVE-2026-40217","publisher":"NIST NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40217","date":"2026-04-10","type":"government","addedDate":"2026-11-18"},{"title":"Red Hat CVE-2026-40217","publisher":"Red Hat","url":"https://access.redhat.com/security/cve/CVE-2026-40217","date":"2026-07-15","type":"vendor","addedDate":"2026-11-18"},{"title":"RHSA-2026:24866","publisher":"Red Hat","url":"https://access.redhat.com/errata/RHSA-2026:24866","date":"2026-06-09","type":"vendor","addedDate":"2026-11-18"},{"title":"RHSA-2026:30056","publisher":"Red Hat","url":"https://access.redhat.com/errata/RHSA-2026:30056","date":"2026-06-25","type":"vendor","addedDate":"2026-11-18"},{"title":"Scans for LiteLLM/Starlette (CVE-2026-42271, CVE-2026-48710)","publisher":"SANS ISC","url":"https://isc.sans.edu/diary/33522","date":"2026-11-16","type":"news","addedDate":"2026-11-18"}],"posts":[],"research":[{"title":"X41-2026-001: Guardrail Sandbox Escape in LiteLLM","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","authors":"Markus Vervier (X41 D-Sec GmbH)","date":"2026-04-08"},{"title":"GHSA-wxxx-gvqv-xp7p","url":"https://github.com/advisories/GHSA-wxxx-gvqv-xp7p","authors":"GitHub Advisory Database (reviewed)","date":"2026-05-11"}],"impact":{"kind":"single-product","product":"LiteLLM","versions":[{"version":"pip litellm >= 1.81.8 and < 1.83.10 (GHSA affected range)","status":"affected","versions":"1.83.11","vendorStatement":{"date":"2026-05-07","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","quote":"Reaching the endpoint requires a proxy-admin credential in default configurations."},"addedDate":"2026-11-18"},{"version":"X41 confirmed image ghcr.io/berriai/litellm:main-latest digest bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f (also the MITRE CNA affected object)","status":"affected","versions":"1.83.11","vendorStatement":{"date":"2026-04-08","url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","quote":"Confirmed Affected Versions: main-latest (docker image ghcr.io/berriai/litellm:main-latest, repo digest ghcr.io/berriai/litellm@sha256:bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f)"},"addedDate":"2026-11-18"},{"version":"1.83.11 or later (GHSA text; this page's recommendation)","status":"vendor-stated-not-affected","versions":"1.83.11","vendorStatement":{"date":"2026-05-07","url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","quote":"Fixed in 1.83.11. The hand-rolled sandbox has been replaced with RestrictedPython. Upgrade to 1.83.11 or later."},"addedDate":"2026-11-18"},{"version":"Bundled in: Red Hat Ansible Automation Platform 2.6 (ansible-automation-platform-26/lightspeed-chatbot-rhel9)","status":"affected","versions":"1780102732","vendorStatement":{"date":"2026-06-09","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","quote":"RHSA-2026:24866: Red Hat Ansible Automation Platform 2.6"},"addedDate":"2026-11-18"},{"version":"Bundled in: Red Hat OpenShift AI 3.3 (rhoai/odh-llama-stack-core-rhel9)","status":"affected","versions":"1782310008","vendorStatement":{"date":"2026-06-25","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217","quote":"RHSA-2026:30056: Red Hat OpenShift AI 3.3"},"addedDate":"2026-11-18"},{"version":"Bundled in: Red Hat Lightspeed Core (redhat-user-workloads/lightspeed-stack)","status":"affected","versions":"no fix yet; CVE ADP defaultStatus affected, no versions array, no RHSA in solutions (checked 18 Nov 2026)","vendorStatement":{"date":"2026-07-15","url":"https://cveawg.mitre.org/api/cve/CVE-2026-40217"},"addedDate":"2026-11-18"}]},"pocs":[],"pocEmptyState":"No public PoC indexed as of 18 Nov 2026. X41-2026-001 is cited as the advisory, not as a PoC. This page does not copy advisory reproductions, request bodies, or usage steps. Nuclei detector CVE-2026-40217 is Detection only. Badge: No public PoC indexed. Never a no-PoC-exists mark.","_feed":{"page":"https://vuln2shell.com/vulns/litellm-guardrail-sandbox-rce-cve-2026-40217","json":"https://vuln2shell.com/vulns/litellm-guardrail-sandbox-rce-cve-2026-40217.json","iocsCsv":"https://vuln2shell.com/vulns/litellm-guardrail-sandbox-rce-cve-2026-40217/iocs.csv","stix":"https://vuln2shell.com/vulns/litellm-guardrail-sandbox-rce-cve-2026-40217/stix.json","badges":{"patch":"Partly patched","itw":"Reported exploited","poc":"No public PoC indexed"}}}