Your AI Guardrail Was the Backdoor.
CISA added LiteLLM's guardrail sandbox escape to its exploited-vulnerabilities list on November 18. How the safety layer became an attack path, and what to check now.
The feature built to keep your AI safe became the way in.
On November 18, 2026, the US Cybersecurity and Infrastructure Security Agency added CVE-2026-40217 to its Known Exploited Vulnerabilities catalog. The flaw sits in LiteLLM, a popular open-source gateway that teams put in front of their AI models. And it lives in the one place nobody expects an attack to start: the guardrail feature.
$100K+
fraudulent AI charges in a single day in some LLMjacking cases
$1M
cumulative abuse in the worst cases before remediation
Dec 2
federal deadline to patch, set by CISA
What Went Wrong
LiteLLM lets admins write custom guardrails in Python and try them out through a test endpoint before deploying. To keep that safe, the code ran inside a homemade sandbox. The sandbox did not hold:
- The filter read text, not behavior. It scanned submitted code for blocked words, and attackers built those words at runtime instead.
- Escape meant full control. Code broke out into the main proxy process, which runs as root in the default Docker image.
- The fix took months. Researchers at X41 D-Sec reported it in February 2026 and published in April after the embargo ran out.
The check looked at what the code said, not what it did.
How Attackers Actually Used It
On November 16, Google Threat Intelligence Group described intrusions where this flaw was one step in a chain called LLMjacking, stealing a company's paid AI access and selling it on:
- Get in with stolen credentials, some harvested from public GitHub repositories.
- Look around internal repos, data stores and cloud services for more keys.
- Escalate a limited LiteLLM "Virtual Key" into full admin using the guardrail flaw.
- Stay in by creating service accounts, with no malware needed.
- Cash out by running and reselling the victim's AI models through underground "LLM mixers".
In one case Google investigated, a botnet generated millions of API calls in about 24 hours before the stolen credentials were revoked.
It Was Never Just One Bug
By default, the guardrail endpoint needs admin rights. Researchers at Obsidian Security showed how an ordinary user gets there first:
| CVE | What it does |
|---|---|
| CVE-2026-47101 | Bypasses route restrictions |
| CVE-2026-47102 | Lets a regular user promote their own role to admin |
| CVE-2026-40217 | Turns admin access into code execution on the server |
Obsidian rates the full chain 9.9 out of 10. It also found the production guardrail paths run code the same unsafe way, so blocking only the test endpoint is not enough.
WHAT THIS MEANS FOR YOU
Your AI gateway holds the keys to every model provider you pay for. A low-privilege account on it can be one chain away from all of them.
If You Run LiteLLM, Check This Now
Sources disagree on which version first fixed the issue, so take the conservative path:
- Upgrade to 1.83.14-stable or later, which Obsidian identifies as the first release with all three fixes.
- Avoid version 1.107.0, which was reported as a backdoored release.
- Block the guardrail endpoints at your reverse proxy if you cannot upgrade today.
- Rotate provider keys, database credentials and MCP tokens on any instance that ran a vulnerable build.
- Audit what is already there. Patching does not remove an admin account, guardrail or callback an attacker added.
- Run the container as non-root, so the next escape lands with less power.
Read the Fine Print
A few points are still unsettled:
- Severity scores differ. GitHub rates it 7.5 assuming admin access is needed; X41 rates it 8.7.
- Google's descriptions vary. Its reports describe the flaw in two different ways, which may reflect a merged exploit chain.
- No named victims. CISA confirms exploitation in the wild but does not name targets or actors.
Treat Safety Layers as Attack Surface
Most AI security reviews test whether the guardrails block bad prompts. Far fewer test whether the guardrails themselves can be abused. This incident shows why both matter.
Our AI security audit looks at the whole agentic stack, not just the model:
- Every way in. We reach the target the way an attacker would, over MCP, HTTP or the command line.
- Guardrails, secrets and canaries. We plant the exact strings a leak would expose and prove whether they escape.
- Agent-aware scoring. AIVSS adds agentic risk factors like tool use and autonomy on top of CVSS.
- Staging only. Signed rules of engagement and burner credentials, so real data is never touched.
A guardrail is code like any other. It needs to be tested like an attacker would test it.


