Arb.Code Exec via Bytecode Rewiring at /guardrails/test_custom_code
CVE-2026-40217 Published on April 10, 2026
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Vulnerability Analysis
CVE-2026-40217 can be exploited with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2026-40217. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Types
Unprotected Alternate Channel
The software protects a primary channel, but it does not use the same level of protection for an alternate channel.
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2026-40217 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-40217
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
BerriAI LiteLLM:- Version bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.