Security ·
LiteLLM CVE-2026-40217: exploited flaw in the AI gateway, patch by 2 December
On 18 November 2026 CISA added CVE-2026-40217 in the LiteLLM proxy server to its catalog of actively exploited vulnerabilities. An attacker can run commands on the host and reach model API keys.
LiteLLM is an open source tool that routes requests to models from OpenAI, Anthropic, Google and others. Many teams run it as a central proxy that holds API keys and spending limits for everyone. That is where CVE-2026-40217 sits: a sandbox escape in the custom-code guardrail feature. According to the security advisory for the litellm package, the affected range runs from version 1.81.8 up to, but not including, 1.83.10.
CISA added the flaw to its Known Exploited Vulnerabilities catalog on 18 November 2026, which means exploitation in the wild is confirmed. US federal agencies have until 2 December 2026 to fix it. The severity is reported as CVSS 8.8 (high) in the sources we found. An authenticated proxy user can use the bug to run operating system commands on the host, and from there reach the model provider keys stored in its configuration.
The question most people ask is whether they are affected. Only the proxy server is vulnerable. If you use LiteLLM purely as a Python library without running the proxy, you are not affected, and version 1.81.7 and earlier do not contain the vulnerable endpoint. The fix replaced a regex-based filter with RestrictedPython. Sources disagree on the first fixed release: the advisory metadata says 1.83.10, the advisory text says 1.83.11. In practice, deploy 1.83.11 or newer.
Patching is not enough if the server may already have been abused. Because the proxy holds keys to paid models, the risk goes beyond data exposure to large bills for requests you never made. After upgrading, rotate every provider key and virtual key, review the logs, and check whether anyone without a reason created guardrails with custom code. Do not leave the proxy reachable from the open internet without further restrictions.
What it means for companies
For Czech companies this is another reminder that an AI gateway is as sensitive as a database: it holds keys, costs and customer data. If you run AI tooling yourself, get a cyber security review and keep the proxy on a private network. Prahapp, the AI division of Buinsoft Technology in Prague, builds custom AI agents with human approval for consequential actions and EU hosting or on-premise deployment, so keys and data stay in your infrastructure. For the wider risk picture see our article on AI guardrails.
Sources: GitLab Advisory Database: LiteLLM sandbox escape in custom-code guardrail, SC Media: CISA adds four critical vulnerabilities to known exploited catalog