PT-2026-31920
CVE-2026-40217
·
Published
2026-02-19
·
Updated
2026-10-27
Description by
CVSS 2.0
9.0
HighMetricsAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions
LiteLLM versions prior to 1.83.11
Description
A flaw in the proxy server allows remote attackers to execute arbitrary code via bytecode rewriting. The issue exists because the
POST /guardrails/test custom code endpoint runs user-supplied Python within a custom sandbox that can be escaped using bytecode-level techniques. This allows the execution of malicious code within the proxy process, which typically runs as root in the default Docker image. In default configurations, accessing this endpoint requires proxy-admin credentials.Recommendations
Update to version 1.83.11 or later.
As a temporary workaround, block the
POST /guardrails/test custom code endpoint at the reverse proxy or API gateway.Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾