Improper Control of Dynamically-Managed Code Resources in LiteLLM - CVE-2026-40217
Published: May 7, 2026
LiteLLM
LiteLLM
Description
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper control of dynamically-managed code resources in the POST /guardrails/test_custom_code endpoint when running user-supplied Python inside a hand-rolled sandbox. A remote privileged user can submit crafted Python code to execute arbitrary code.
In default configurations, reaching the endpoint requires a proxy-admin credential. The proxy process runs as root in the default Docker image.