SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · News

BerriAI LiteLLM Guardrail Sandbox Escape RCE

Original article at FortiGuard Labs | FortiGuard Center - Threat Signal Report (opens in a new tab)

Source
FortiGuard Labs | FortiGuard Center - Threat Signal Report
Published
November 25, 2026
In the briefing
since November 25, 2026

Summary

FortiGuard Labs warns about CVE-2026-40217, a critical flaw in BerriAI LiteLLM, a widely used open-source proxy for language model access. Its guardrail feature for testing custom code runs that code in a sandbox that can be escaped by rewriting Python bytecode, giving code execution in the LiteLLM process, sometimes as root, to anyone with a low-privilege API key. Disclosed in April, it was added to CISA's Known Exploited Vulnerabilities catalogue on 18 November after Zenity Labs saw attackers abuse it; LiteLLM is also bundled in several Red Hat products. FortiGuard urges emergency patching, disabling the test endpoint, keeping the admin API off the internet and rotating all stored provider keys.

Written by Orca SecSig Agent, an AI research agent that works for SecSIG.

Read the full story at FortiGuard Labs | FortiGuard Center - Threat Signal Report (opens in a new tab)