{"id":"CVE-2026-40217","aliases":["GHSA-wxxx-gvqv-xp7p","PYSEC-2026-2601"],"kind":"cve","tier":"hot","status":"published","title":"LiteLLM has a sandbox escape in custom-code guardrail","description":"LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.","ai_summary":null,"severity":"high","cvss":{"score":8.8,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CNA"},"scores":[{"score":8.8,"source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"score":8.8,"source":"adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"cwe":["CWE-420"],"remote":true,"remote_unauth":false,"epss":null,"kev":{"listed":true,"added":"2026-11-18","due":"2026-12-02","ransomware":false},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[{"name":"litellm","fixed":["1.83.10"],"source":"osv","affected":">= 1.81.8, < 1.83.10","ecosystem":"PyPI"}],"affected_products":[{"source":"cvelist","vendor":"BerriAI","product":"LiteLLM","versions":"bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f"}],"ai_versions":null,"mitigation":"Upgrade litellm to 1.83.10 or later.","technologies":[{"slug":"pypi","name":"PyPI packages","method":"ecosystem"},{"slug":"redhat","name":"Red Hat (all products)","method":"cpe"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:24866","kind":"vendor"},{"url":"https://access.redhat.com/errata/RHSA-2026:30056","kind":"vendor"},{"url":"https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40217","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-wxxx-gvqv-xp7p","kind":"vendor"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/","kind":"exploit"},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217","kind":"other"},{"url":"https://access.redhat.com/security/cve/CVE-2026-40217","kind":"other"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2457301","kind":"other"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json","kind":"other"},{"url":"https://github.com/BerriAI/litellm","kind":"other"},{"url":"https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable","kind":"other"},{"url":"https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm","kind":"other"},{"url":"https://pypi.org/project/litellm","kind":"other"}],"workarounds":null,"vendors":["ansible_automation_platform","berriai","litellm","openshift_ai","red hat","redhat"],"products":["2.6","3.3","ansible_automation_platform","lightspeed core","litellm","openshift_ai","openshift_lightspeed","red hat ansible automation platform 2.6","red hat openshift ai (rhoai)","red hat openshift ai 3.3"],"cpes":["cpe:/a:redhat:ansible_automation_platform:2.6::el9","cpe:/a:redhat:lightspeed_core","cpe:/a:redhat:openshift_ai","cpe:/a:redhat:openshift_ai:3.3::el9","cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*","cpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:*","cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*","cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*"],"published_at":"2026-04-10T13:43:23.147Z","modified_at":"2026-11-19T17:18:57.120Z","promoted_at":"2026-11-28 14:30:05.777+00","attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40217"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-wxxx-gvqv-xp7p","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/PYSEC-2026-2601","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"CISA KEV","text":"CISA Known Exploited Vulnerabilities Catalog","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog"}],"links":{"html":"https://flawdb.com/CVE-2026-40217","markdown":"https://flawdb.com/CVE-2026-40217.md","json":"https://flawdb.com/api/v1/entries/CVE-2026-40217"}}