Black Friday60% off BLACKFRIDAY2026
Platform
PlansPartners
Resources
ToolsBlogDocs
Sign Up →
CVE

CVE-2026-40217

8.8
CVSShigh
Exploitable remotely over the internet · low-privilege account sufficient.
Description

LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.

Attack Vector
Network
Privileges Req.
Low
User Interaction
None
litellmred hat ansible automation platform 2.6red hat openshift ai 3.3lightspeed corered hat openshift ai (rhoai)
Updated Nov 17, 2026View on NVD →
S4E scanner

LiteLLM < 1.25.0 - Remote Code Execution

LiteLLM before 1.25.0 allows authenticated users with the master API key to execute arbitrary Python code through the /guardrails/test_custom_code endpoint intended for custom guardrail testing. The endpoint's insufficient filtering mechanisms can be bypassed, allowing attackers to abuse Python's string operations and bytecode manipulation to break out of the restricted environment. Successful exploitation may lead to remote code execution as the LiteLLM process user, which may be root when using the default Docker image. References: https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ https://github.com/BerriAI/litellm https://nvd.nist.gov/vuln/detail/CVE-2026-40217 Remediation: Block /guardrails/test_custom_code at the reverse proxy, restrict admin API access, avoid exposing the management interface to untrusted networks, and do not run LiteLLM as root. Apply vendor patches when available.

url

CVE history: litellm

Predict next CVE date with AI

Monitor this CVE on your assets

S4E maps published CVEs to scanners and forecasts the next disclosure window for your stack.

Create a free account →