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
CVE-2026-40217 is a vulnerability in BerriAI LiteLLM that permits remote code execution through bytecode rewriting at a specific URI endpoint (/guardrails/test_custom_code). This issue stems from an unprotected alternate channel (CWE-420) and improper control over code generation (CWE-94). The CVSS 3.1 score is 8.8, indicating high severity with network attack vector, low attack complexity, requiring low privileges and no user interaction, and impacting confidentiality, integrity, and availability. Although no direct patch or remediation level is provided in the input, Red Hat has published advisories referencing this CVE, suggesting that fixes or mitigations may be available through their errata. The vulnerability affects LiteLLM versions up to the date 2026-04-08, but exact version identifiers are not specified.
Potential Impact
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected system, potentially leading to full compromise of confidentiality, integrity, and availability of the system running LiteLLM. The vulnerability is exploitable over the network with low complexity and requires only low privileges, increasing the risk of exploitation. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Red Hat has published advisories referencing CVE-2026-40217, indicating that updates or fixes may be available through Red Hat errata. Users should monitor the referenced Red Hat advisories (https://access.redhat.com/security/cve/CVE-2026-40217, https://access.redhat.com/errata/RHSA-2026:24866, https://access.redhat.com/errata/RHSA-2026:30056) for official patches or updates. Until a patch is applied, restrict access to the vulnerable URI endpoint (/guardrails/test_custom_code) if possible to mitigate risk.
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.
CVSS v3.1
Score 8.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40217 is a vulnerability in BerriAI LiteLLM that permits remote code execution through bytecode rewriting at a specific URI endpoint (/guardrails/test_custom_code). This issue stems from an unprotected alternate channel (CWE-420) and improper control over code generation (CWE-94). The CVSS 3.1 score is 8.8, indicating high severity with network attack vector, low attack complexity, requiring low privileges and no user interaction, and impacting confidentiality, integrity, and availability. Although no direct patch or remediation level is provided in the input, Red Hat has published advisories referencing this CVE, suggesting that fixes or mitigations may be available through their errata. The vulnerability affects LiteLLM versions up to the date 2026-04-08, but exact version identifiers are not specified.
Potential Impact
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected system, potentially leading to full compromise of confidentiality, integrity, and availability of the system running LiteLLM. The vulnerability is exploitable over the network with low complexity and requires only low privileges, increasing the risk of exploitation. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Red Hat has published advisories referencing CVE-2026-40217, indicating that updates or fixes may be available through Red Hat errata. Users should monitor the referenced Red Hat advisories (https://access.redhat.com/security/cve/CVE-2026-40217, https://access.redhat.com/errata/RHSA-2026:24866, https://access.redhat.com/errata/RHSA-2026:30056) for official patches or updates. Until a patch is applied, restrict access to the vulnerable URI endpoint (/guardrails/test_custom_code) if possible to mitigate risk.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-40217","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24866","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30056","vendor":"Red Hat"}]
Threat ID: 69d907431cc7ad14dac20a7e
Added to database: 04/10/2026, 14:20:51 UTC
Last enriched: 07/15/2026, 09:10:25 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 240
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.
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.