LiteLLM < 2026-04-08 - Remote Code Execution via Guardrails Test Custom Code Endpoint
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2026-40217. PoCs published by learner202649.
AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-40217, demonstrating a sandbox escape in LiteLLM's guardrail testing endpoint leading to remote code execution (RCE) as root in default Docker deployments. The exploit leverages CPython bytecode rewriting to bypass regex-based source code filtering.
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Exploits (1)
This repository contains a functional exploit for CVE-2026-40217, demonstrating a sandbox escape in LiteLLM's guardrail testing endpoint leading to remote code execution (RCE) as root in default Docker deployments. The exploit leverages CPython bytecode rewriting to bypass regex-based source code filtering.
References (1)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H