What happened
According to CISA, LiteLLM contains an unprotected alternate channel vulnerability. The flaw can be exploited remotely through bytecode rewriting at the /guardrails/test_custom_code endpoint, which could allow arbitrary code to run on the affected system. The agency published its alert on CVE-2026-40217 and tied the flaw to BerriAI's product. The exploitation probability for this flaw, according to the EPSS estimate, is 17.0%.
Impact
Because the vulnerability enables arbitrary code execution, the potential impact includes compromise of the server where LiteLLM is deployed. The source does not detail confirmed attacks or the full extent of any damage, so each organization should assess the flaw against its own environment. The alert also refers to a federal remediation deadline, which appears in the catalog entry from CISA.
Who is affected
Organizations that use BerriAI LiteLLM are affected, with priority for instances exposed to the internet. CISA asks each responsible party to assess the internet exposure of its assets and to follow BOD 26-04, the directive on prioritizing updates based on risk. The alert also references forensic triage requirements published by the agency.
What to do now
- Inventory every LiteLLM instance in your organization, including cloud environments and staging servers.
- Apply the mitigations indicated by the vendor, following CISA's guidance.
- Assess the internet exposure of each asset and prioritize those reachable from outside.
- Review access logs for the /guardrails/test_custom_code endpoint for unusual requests.
- If no mitigation is available, discontinue use of the product, following BOD 26-04 guidance for cloud services.
Technical details
- Identifier: CVE-2026-40217
- Component: BerriAI LiteLLM
- Type: unprotected alternate channel
- Vector: remote attack
- Endpoint cited: /guardrails/test_custom_code
- Technique: bytecode rewriting
- Potential result: arbitrary code execution
- CVSS score: 8.8 (High)
- Exploitation probability (EPSS): 17.0%
Sources
- CISA KEV: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-40217
