CVE-2026-40217
HIGH 8.8CVSS 3.1known exploitedLiteLLM has a sandbox escape in custom-code guardrail
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
- Published
- 10 Apr 2026
- Last modified
- 19 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-420CWE-913CWE-94
- Also known as
- GHSA-wxxx-gvqv-xp7pPYSEC-2026-2601
- Sources
- NVDJSONCVE ListJSONCISA KEVJSONOSV GHSA-wxxx-gvqv-xp7pJSONOSV PYSEC-2026-2601JSON
In CISA's Known Exploited Vulnerabilities catalog since 18 Nov 2026; US federal agencies must fix it by 2 Dec 2026.
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | mitre | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | redhat-SADP | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: active; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | litellm | litellmcpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* |
>= 1.81.8, < 1.83.10 | 1.83.10 |
| NVD | redhat | ansible_automation_platformcpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:* |
>= 2.0, < 2.6-9 | 2.6-9 |
| NVD | redhat | openshift_aicpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:* |
>= 3.3, < 3.3.4 | 3.3.4 |
| NVD | redhat | openshift_lightspeedcpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:* |
(no version) | |
| CVE List | BerriAI | LiteLLM | = bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f | |
| CVE List | https://catalog.redhat.com/software/containers/ | ansible-automation-platform-26/lightspeed-chatbot-rhel9cpe:/a:redhat:ansible_automation_platform:2.6::el9 |
all versions | |
| CVE List | https://catalog.redhat.com/software/containers/ | rhoai/odh-llama-stack-core-rhel9cpe:/a:redhat:openshift_ai:3.3::el9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | redhat-user-workloads/lightspeed-stackcpe:/a:redhat:lightspeed_core |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mlflow-rhel9cpe:/a:redhat:openshift_ai |
||
| OSV | PyPI | litellm | >= 1.81.8, < 1.83.10 | 1.83.10 |
References
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ · Exploit, Mitigation, Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:24866 · Third Party Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:30056 · Third Party Advisory, vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-40217 · Third Party Advisory, vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2457301 · Third Party Advisory, issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json · Third Party Advisory, x_sadp-csaf-vex
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 · US Government Resource, government-resource
- https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40217 · ADVISORY
- https://github.com/BerriAI/litellm · PACKAGE
- https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable · WEB
- https://pypi.org/project/litellm · PACKAGE
- https://github.com/advisories/GHSA-wxxx-gvqv-xp7p · ADVISORY
History
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 May 2026)
- 25 Nov 2026 20:11 UTC · CVE List: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 10 Apr 2026)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 18 Nov 2026)
- 18 Nov 2026 00:00 UTC · Listed as known exploited