LiteLLM CVE-2026-40217: What the Active KEV Exploitation Means for AI Gateways
CISA added LiteLLM's CVE-2026-40217 guardrail sandbox escape to its Known Exploited Vulnerabilities catalog on 18 November 2026. Attackers are using it to steal model-provider API keys and run cryptominers on compromised AI gateways.
CVE-2026-40217 is a guardrail sandbox escape vulnerability in BerriAI's LiteLLM AI gateway that CISA added to its Known Exploited Vulnerabilities catalog on 18 November 2026. Attackers are using it to break out of the LiteLLM sandbox, gain remote code execution on the proxy, steal model-provider API keys, and run cryptominers on the compromised host.
Key takeaways
- CVE-2026-40217 is a sandbox escape in LiteLLM's guardrail execution feature, and CISA's KEV listing confirms it is being exploited in the wild, not just theoretically reachable.
- Exploitation chains to remote code execution on the LiteLLM proxy itself, which means attackers inherit every model-provider API key the gateway was holding.
- Confirmed outcomes include credential theft and cryptocurrency mining on compromised hosts, consistent with the broader pattern CSA's research describes as LLMjacking.
- Patching the proxy and rotating every key it had access to are both required steps. A version upgrade does not invalidate keys that were already exposed.
What is CVE-2026-40217 and why is it in CISA's KEV catalog?
LiteLLM is an open-source AI gateway maintained by BerriAI, used to route and manage calls across model providers such as OpenAI, Anthropic, and Azure OpenAI through a single proxy layer. CVE-2026-40217 is a flaw in its guardrail feature, the component meant to inspect and filter model inputs and outputs, that allows an attacker to escape the sandbox those guardrails run in and execute code on the underlying host.
Cloud Security Alliance's research note frames this precisely: a safety control became an execution channel. CISA's catalog addition on 18 November 2026 was part of a four-vulnerability KEV batch that SC World also covered, and the listing itself is CISA's formal statement that active exploitation has been observed, not merely a theoretical risk rating.
Who is affected by the LiteLLM guardrail sandbox escape?
Any organization running a self-hosted LiteLLM proxy with the guardrail feature enabled on an unpatched version is exposed. This is the second LiteLLM vulnerability to reach active exploitation status in 2026. CVE-2026-42271, reported in June 2026, chained an MCP injection flaw to unauthenticated RCE through a different mechanism, and TechRepublic covered the governance gaps that let service accounts go unmanaged around it. These are distinct vulnerabilities, but the pattern is the same: LiteLLM's proxy role makes it a repeat target.
| Vulnerability | Vector | Outcome |
|---|---|---|
| CVE-2026-40217 (current) | Guardrail sandbox escape | RCE, key theft, cryptomining |
| CVE-2026-42271 (June 2026) | MCP injection chain | Unauthenticated RCE |
Why are AI gateways such high-value targets right now?
AI gateways concentrate credentials in a way few other services do. A single LiteLLM proxy often holds master keys for multiple model providers, cloud billing accounts, and usage quotas behind one process. DEV Community's analysis of credential concentration makes the point directly: compromising the gateway is not one key, it is every key the gateway was trusted with.
HOL's writeup of the active campaign describes attackers pivoting from the sandbox escape straight to credential harvesting and compute abuse. Stolen model access does not sit idle. CSA's research on LLMjacking documents stolen AI compute being resold or repurposed as offensive infrastructure, with cryptomining as one of the more visible monetization paths once a host is owned.
What should organizations do about CVE-2026-40217 right now?
Patching is necessary but not sufficient on its own. The fix closes the sandbox escape path, but it does nothing to invalidate keys an attacker already copied. Beri.net's guidance is explicit that organizations need both an upgrade to a patched LiteLLM release and a full rotation of every credential the proxy touched.
- Upgrade self-hosted LiteLLM proxies to the patched release, confirmed by BerriAI's advisory lineage covered in patch guides as version 1.83.14 or later.
- Rotate every model-provider API key, cloud credential, and service account secret the gateway had access to, not just the ones you suspect were used.
- Audit guardrail and plugin configurations for other sandbox boundaries that trust input the way this one did, as detailed in Ostorlab's technical breakdown.
- Review proxy and process logs for signs the sandbox escape was already exploited before the patch landed, per the indicators in Nexgismo's fix guide and NFLO's vulnerability brief.
This is a basic application of vulnerability management discipline: patch, then verify nothing already walked through the open door.
Where does detection and containment fit alongside patching?
Patch status answers whether the vulnerability still exists, not whether it was already used. AI gateways like LiteLLM are frequently deployed by data science or platform engineering teams rather than the security team, which means proxy logs often sit outside the SOC's existing pipeline entirely, the same blind spot we describe in our work on shadow AI and agent discovery.
Vijilan Security's Global SOC closes that gap by bringing LiteLLM proxy logs into the same detection pipeline as the rest of the environment, the approach we built our platform around in why Vijilan runs on Falcon, LogScale, and Cribl. Once those logs are in scope, anomalous process activity or privilege escalation on the proxy host triggers the same response path as any other asset: isolate the host, revoke the compromised keys, and investigate the blast radius, rather than waiting for a patch cycle to confirm exposure after the fact. That containment-first posture is the core of ThreatRespond™ and how we approach incident response for infrastructure that didn't exist on anyone's asset inventory a year ago.
Next step
If LiteLLM or any other AI gateway is running in your environment without SOC visibility, that is the gap to close before the next KEV listing, not after. Learn how the AI-assisted SOC extends detection and containment to infrastructure your existing tools were never pointed at.
What we covered this week
- Cisco Expressway CVE-2026-76466: Critical Flaw Now Exploited (21 November 2026)
- VMware vCenter CVE-2026-123890: Exploited Authentication Bypass (21 November 2026)
- Finishing the Map: Why CrowdStrike and Zscaler Make Sense (21 November 2026)
- JPMorgan Chase, Mastercard and Visa Confirm Vendor Cyberattacks (20 November 2026)
- CISA KEV June 2026: All 23 Additions and What MSPs Should Patch First (19 November 2026)
- Wellington IT Breach: Credit Union Payee Data Exposed (19 November 2026)
- CVE-2026-90436: Exploited Axis Flaw Hits N-central and Confluence (19 November 2026)
- Equinor Cyberattack: What MSPs Serving Energy Should Do (18 November 2026)
- Optimizely Script Attack: What MSPs Should Check Now (17 November 2026)
- Infoblox Vendor Breach: What MSPs Should Check Now (17 November 2026)
Sources
- Guardrails as an Execution Channel: LiteLLM CVE-2026-40217 Enters KEV
- CISO Daily Briefing
- AI Gateway Credential Concentration Raises the Cost of RCE - DEV Community
- Attackers are using a LiteLLM guardrail sandbox escape to take over the proxy that holds your AI keys (CVE-2026-40217, CISA KEV)
- LiteLLM CVE-2026-40217: AI Gateway RCE Actively Exploited
- CVE-2026-40217 in BerriAI LiteLLM
- CVE-2026-40217: LiteLLM KEV patch guide
- LiteLLM CVE-2026-40217: Patch the Exploited Guardrail Escape
- LiteLLM Guardrail Sandbox Escape RCE (CVE-2026-40217)
- LiteLLM, Axis, REDCap, DSM: 4 Flaws Join CISA KEV
- Known Exploited Vulnerabilities Catalog
- CISA adds four critical vulnerabilities to known exploited catalog
- CISA Adds Four Known Exploited Vulnerabilities to Catalog
- LiteLLM Flaw CVE-2026-42271 Exploited in the Wild, Chains to Unauthenticated RCE
- U.S. CISA adds BerriAI LiteLLM and Check Point Security Gateway flaws to its Known Exploited Vulnerabilities catalog
- LiteLLM AI Gateway: Active Exploitation via MCP Injection
- CISA Warning: LiteLLM Flaw Could Expose Enterprise AI Gateways
- Vulnerability management
- Your LiteLLM Proxy May Need More Than a Patch for CVE-2026-40217
- LLMjacking Evolved: Stolen AI Compute as Offensive Infrastructure
Threat notes, once a week
What our SOC actually saw this week: new attack patterns, the detections we shipped against them, and what it means if you run an MSP. Written by the analysts, not by marketing.
ThreatDefend™
Our stack. Our SOC.
Managed XDR on CrowdStrike Falcon, deployed and run 24/7 by the Vijilan SOC.