CVE-2026-40217: BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
AI-assisted summary built from NVD and CISA data. Verify against the linked sources before acting.
Summary
BerriAI LiteLLM exposes an unprotected alternate channel at the /guardrails/test_custom_code URI that lets remote attackers execute arbitrary code via bytecode rewriting. It is known to be exploited, and Red Hat products that include LiteLLM are also listed.
Impact: remote code execution
Affected technologies
- BerriAI LiteLLM
- Red Hat Ansible Automation Platform
- Red Hat OpenShift AI
- Red Hat OpenShift Lightspeed
Recommended action
Update LiteLLM and the affected Red Hat products to fixed versions, and block or restrict access to the /guardrails/test_custom_code endpoint until patched.
Details
| CVSS | 8.8 (High) |
| Vendor / product | BerriAI LiteLLM |
| CISA KEV | Added 2026-11-18, remediation due 2026-12-02 |
| Ransomware use | Unknown |
| Published | 2026-04-10 |
| Weakness | CWE-420 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Original description
BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
References
- NVD record
- CISA Known Exploited Vulnerabilities catalog
- https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/
- https://access.redhat.com/errata/RHSA-2026:24866
- https://access.redhat.com/errata/RHSA-2026:30056
- https://access.redhat.com/security/cve/CVE-2026-40217
- https://bugzilla.redhat.com/show_bug.cgi?id=2457301