CVE-2026-40217: CWE-420 Unprotected Alternate Channel in BerriAI LiteLLM
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
AI Analysis
Technical Summary
This vulnerability in LiteLLM allows remote attackers to perform arbitrary code execution by rewriting bytecode through an unprotected endpoint (/guardrails/test_custom_code). The CVSS 3.1 base score is 8.8, reflecting high impact on confidentiality, integrity, and availability with low attack complexity and no user interaction required. The vulnerability arises from CWE-420, which involves an unprotected alternate communication channel that bypasses normal security controls. No patch or official remediation guidance has been published by BerriAI as of the publication date.
Potential Impact
Successful exploitation enables remote attackers to execute arbitrary code on affected LiteLLM instances, potentially leading to full system compromise including confidentiality, integrity, and availability impacts. Given the high CVSS score (8.8), this vulnerability poses a significant risk to affected systems if exploited.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the /guardrails/test_custom_code URI and monitor for any unauthorized access attempts. Avoid exposing LiteLLM instances to untrusted networks. Follow vendor updates closely for any forthcoming patches or mitigations.
CVE-2026-40217: CWE-420 Unprotected Alternate Channel in BerriAI LiteLLM
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in LiteLLM allows remote attackers to perform arbitrary code execution by rewriting bytecode through an unprotected endpoint (/guardrails/test_custom_code). The CVSS 3.1 base score is 8.8, reflecting high impact on confidentiality, integrity, and availability with low attack complexity and no user interaction required. The vulnerability arises from CWE-420, which involves an unprotected alternate communication channel that bypasses normal security controls. No patch or official remediation guidance has been published by BerriAI as of the publication date.
Potential Impact
Successful exploitation enables remote attackers to execute arbitrary code on affected LiteLLM instances, potentially leading to full system compromise including confidentiality, integrity, and availability impacts. Given the high CVSS score (8.8), this vulnerability poses a significant risk to affected systems if exploited.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the /guardrails/test_custom_code URI and monitor for any unauthorized access attempts. Avoid exposing LiteLLM instances to untrusted networks. Follow vendor updates closely for any forthcoming patches or mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-04-10T13:43:22.641Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d907431cc7ad14dac20a7e
Added to database: 4/10/2026, 2:20:51 PM
Last enriched: 4/18/2026, 2:21:20 PM
Last updated: 5/25/2026, 6:47:47 AM
Views: 156
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.