CVE-2026-40217: LiteLLM flaw allows remote code execution via guardrails endpoint
LiteLLM through 2026-04-08 permits remote attackers to execute arbitrary code through bytecode rewriting at the /guardrails/test_custom_code URI.
Reported by CISA KEV
First reported Summary updated
- Public PoC
- Yes
- Exploited
- Yes, KEV
- CVSS
- 8.8 High
What happened
LiteLLM contains an unprotected alternate channel vulnerability that could let remote attackers run arbitrary code by rewriting bytecode at the /guardrails/test_custom_code URI.KEV
The flaw affects LiteLLM versions up to 2026-04-08.NVD
CISA added the issue to its known exploited vulnerabilities catalogue on 18 November 2026.KEV
Who is affected
- BerriAI LiteLLM, through 2026-04-08NVD
Is there a public exploit?
Yes, public Public PoC or exploit code has been published, listed below.
PoC code comes from strangers and is not checked by us. Read it before you run it, and only run it in a lab or against targets you are allowed to test.
Exploited in the wild?
Yes CISA lists the vulnerability as known exploited.KEV CISA added CVE-2026-40217 to its catalogue of known exploited vulnerabilities on 18 November 2026, with US federal agencies required to act by 2 December 2026.
What to do
- Apply mitigations according to the vendor's instructions.KEV
- For cloud services, follow BOD 26-04 guidance or stop using the product if mitigations are unavailable.KEV
For bug hunters
This is an unprotected alternate channel flaw that lets an attacker reach code execution through a specific endpoint. In programs, look for endpoints that accept code or configuration and then execute it, especially test or debug routes that may lack the same access checks as the main application. Check whether such routes are exposed and whether they enforce authentication and authorisation.
What to test
- Try reaching test or debug endpoints without authentication.
- Check whether code submission endpoints enforce the same access controls as production routes.
- Look for endpoints that accept bytecode or code strings and execute them.
- Verify that guardrail or custom code test routes are not exposed publicly.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1