CVE-2026-40217 LiteLLM has a sandbox escape in custom-code guardrail
- Published
- Updated
- Exploit status
- Exploited in the wild (confirmed)
- CISA SSVC
- Actively exploited · automatable: no · technical impact: total
- Technology
- Red Hat
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
CISA Known Exploited Vulnerability
- Date added
- 2026-11-18
- Due date (FCEB)
- 2026-12-02
- Ransomware use
- Unknown
Required action
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.
Upgrade path
11 packages: 3 fixed, 1 partially fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat lightspeed core | All versions | No fix listed | No fix yet |
| redhat openshift lightspeed | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1780102732(Red Hat ansible_automation_platform 2.6 el9) | All versions | No fix listed | No fix yet |
| redhat/redhat-user-workloads/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/redhat-user-workloads/lightspeed-stack(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-llama-stack-core-rhel9:1782310008(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat openshift ai | < 1782310008; >= 3.3, < 3.3.4; All versions | 3.3.4, 1782310008 | Partially fixed |
| litellm | >= 1.81.8, < 1.83.10 | 1.83.10 | Fixed |
| pypi litellm(PyPI) | = 1.81.8; = 1.81.9; = 1.81.9.dev1; = 1.81.10 +24 more | 1.83.10 | Fixed |
| redhat ansible automation platform | < 1780102732; >= 2.0, < 2.6-9 | 2.6-9, 1780102732 | Fixed |
| BerriAI litellm | = bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi litellm(PyPI) | >= 1.81.8, < 1.83.10 | 1.83.10 |
| pypi litellm(PyPI) | = 1.81.10 | No fix listed |
| pypi litellm(PyPI) | = 1.81.11 | No fix listed |
| pypi litellm(PyPI) | = 1.81.12 | No fix listed |
| pypi litellm(PyPI) | = 1.81.13 | No fix listed |
| pypi litellm(PyPI) | = 1.81.14 | No fix listed |
| pypi litellm(PyPI) | = 1.81.15 | No fix listed |
| pypi litellm(PyPI) | = 1.81.16 | No fix listed |
| pypi litellm(PyPI) | = 1.81.8 | No fix listed |
| pypi litellm(PyPI) | = 1.81.9 | No fix listed |
| pypi litellm(PyPI) | = 1.81.9.dev1 | No fix listed |
| pypi litellm(PyPI) | = 1.82.0 | No fix listed |
| pypi litellm(PyPI) | = 1.82.1 | No fix listed |
| pypi litellm(PyPI) | = 1.82.2 | No fix listed |
| pypi litellm(PyPI) | = 1.82.3 | No fix listed |
| pypi litellm(PyPI) | = 1.82.4 | No fix listed |
| pypi litellm(PyPI) | = 1.82.5 | No fix listed |
| pypi litellm(PyPI) | = 1.82.6 | No fix listed |
| pypi litellm(PyPI) | = 1.83.0 | No fix listed |
| pypi litellm(PyPI) | = 1.83.1 | No fix listed |
| pypi litellm(PyPI) | = 1.83.2 | No fix listed |
| pypi litellm(PyPI) | = 1.83.3 | No fix listed |
| pypi litellm(PyPI) | = 1.83.4 | No fix listed |
| pypi litellm(PyPI) | = 1.83.5 | No fix listed |
| pypi litellm(PyPI) | = 1.83.6 | No fix listed |
Show 16 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi litellm(PyPI) | = 1.83.7 | No fix listed |
| pypi litellm(PyPI) | = 1.83.8 | No fix listed |
| pypi litellm(PyPI) | = 1.83.9 | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9:1780102732(Red Hat:ansible_automation_platform:2.6::el9) | All versions | No fix listed |
| redhat/rhoai/odh-llama-stack-core-rhel9:1782310008(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/redhat-user-workloads/lightspeed-stack(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/redhat-user-workloads/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| BerriAI litellm | = bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f | No fix listed |
| redhat ansible automation platform | < 1780102732 | 1780102732 |
| redhat openshift ai | < 1782310008 | 1782310008 |
| redhat lightspeed core | All versions | No fix listed |
| redhat openshift ai | All versions | No fix listed |
| litellm | >= 1.81.8, < 1.83.10 | 1.83.10 |
| redhat ansible automation platform | >= 2.0, < 2.6-9 | 2.6-9 |
| redhat openshift ai | >= 3.3, < 3.3.4 | 3.3.4 |
| redhat openshift lightspeed | All versions | No fix listed |
References
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- www.x41-dsec.de exploit mitigation third-party-advisory
- pypi.org product
- github.com vendor-advisory
- Red Hat CVE page mitigation third-party-advisory vdb-entry vendor-advisory
- RHBZ#2457301 issue-tracking third-party-advisory
- security.access.redhat.com third-party-advisory
- RHSA-2026:24866 patch third-party-advisory vendor-advisory
- RHSA-2026:30056 patch third-party-advisory vendor-advisory
- www.cve.org
- www.cisa.gov government-resource us-government-resource
- CISA Adds Four Known Exploited Vulnerabilities to Catalog vendor-advisory
- ENISA EUVD EUVD-2026-21376 third-party-advisory