AI hack · Exploited vulnerability · 10 Apr 2026CVE-2026-40217Exploited, CISA saysFix version differs by source
CISA says attackers are exploiting a LiteLLM flaw that escapes its guardrail sandbox to run code on the proxy
On 18 November 2026, CISA confirmed that SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated CVE-2026-40217, a sandbox escape in LiteLLM's custom-code guardrail feature, SecurityOnline reports. It lets Python sent to a guardrail test SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated, SecurityOnline says. Fixed builds date from April 2026, though sources name different ones.
By Chris Hoskins, Founder, Boogey ·
Tap underlined words to see who reported them.
8.8
SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated
2 Dec 2026
SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated
Public
SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated
Unknown
SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated
How a guardrail test became a way in
Step 1
A test that runs code
LiteLLM has a route that SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated, to test a custom guardrail, SecurityOnline says.
Step 2
Past the sandbox
The code is meant to stay in a sandbox. SecurityOnline reports that crafted input got past it by SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated, the low-level instructions Python runs.
Step 3
Code on the proxy
From there, SecurityOnline says, the code runs on SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated.
SecurityOnline says a logged-in user can reach the route. Obsidian Security found a longer path, in which two separate flaws, CVE-2026-47101 and CVE-2026-47102, 3 sourcesObsidian SecurityBreaking LiteLLM: From Low-Privilege User to Admin and RCE (CVE-2026-47101, CVE-2026-47102, CVE-2026-40217)Undated · first-handCloud Security Alliance LabsLiteLLM AI Gateway: KEV-Listed Attack Chain Enables Full TakeoverUndatedSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated, and this one then runs the code.
Why a gateway flaw reaches so far
Obsidian says LiteLLM Proxy brings provider keys, authentication, budgets, routing, guardrails and audit logs SourceObsidian SecurityBreaking LiteLLM: From Low-Privilege User to Admin and RCE (CVE-2026-47101, CVE-2026-47102, CVE-2026-40217)Undated · first-hand.
Every provider's keys
Cloud Security Alliance Labs says one proxy often holds credentials for a company's 2 sourcesCloud Security Alliance LabsLiteLLM AI Gateway: KEV-Listed Attack Chain Enables Full TakeoverUndatedSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated, such as master keys, provider API keys and database connection strings.
Replies changed in transit
Obsidian says control of the gateway lets an attacker SourceObsidian SecurityBreaking LiteLLM: From Low-Privilege User to Admin and RCE (CVE-2026-47101, CVE-2026-47102, CVE-2026-40217)Undated · first-hand in transit.
Agents steered
That can SourceObsidian SecurityBreaking LiteLLM: From Low-Privilege User to Admin and RCE (CVE-2026-47101, CVE-2026-47102, CVE-2026-40217)Undated · first-hand into shell access, file reads, browser actions or its other tools, Obsidian says.
From a private report to CISA's list
19 Feb 2026
Obsidian Security 2 sourcesObsidian SecurityBreaking LiteLLM: From Low-Privilege User to Admin and RCE (CVE-2026-47101, CVE-2026-47102, CVE-2026-40217)Undated · first-handCloud Security Alliance LabsLiteLLM AI Gateway: KEV-Listed Attack Chain Enables Full TakeoverUndated a chain of three LiteLLM flaws to BerriAI, the company behind LiteLLM.
10 Apr
CVE-2026-40217, the flaw that turns the guardrails route into code execution, 2 sourcesObsidian SecurityBreaking LiteLLM: From Low-Privilege User to Admin and RCE (CVE-2026-47101, CVE-2026-47102, CVE-2026-40217)Undated · first-handSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated. SecurityOnline says X41 D-Sec disclosed it.
8 Jun
CISA put SourceCloud Security Alliance LabsLiteLLM AI Gateway: KEV-Listed Attack Chain Enables Full TakeoverUndated, CVE-2026-42271, on its exploited list, Cloud Security Alliance Labs notes.
18 Nov
CISA added CVE-2026-40217 to its SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated with three other flaws, confirming active attacks.
Which build fixes it
3 sourcesObsidian SecurityBreaking LiteLLM: From Low-Privilege User to Admin and RCE (CVE-2026-47101, CVE-2026-47102, CVE-2026-40217)Undated · first-handCloud Security Alliance LabsLiteLLM AI Gateway: KEV-Listed Attack Chain Enables Full TakeoverUndatedSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated. SecurityOnline says to use builds after 8 April 2026, or Red Hat errata RHSA-2026:24866 and RHSA-2026:30056. Obsidian Security, which found the three-flaw chain, says LiteLLM v1.83.14-stable, released 25 April 2026, closes all of it. The later release meets both accounts, so it is the floor to hold.
The Boogey fix
Could someone run code on your AI gateway?
You’re exposed if
- You run LiteLLM as a gateway or proxy in front of your AI providers, on a build older than v1.83.14-stable.
- You ship or deploy a product that bundles LiteLLM, including its guardrail or MCP test endpoints.
- People or apps other than your admins hold keys to the gateway.
- Your agents get model replies or call tools through that gateway.
Fix it
01Set a version floor
Fail the build below LiteLLM v1.83.14-stable, including copies bundled in other products. It is later than the SourceSecurityOnlineCISA Adds 4 Exploited Flaws to KEV: Synology DSM, LiteLLMUndated that SecurityOnline names, so it meets both accounts.
02Keep the gateway private
Put the LiteLLM proxy on a private network, so its guardrail test and admin routes never answer from the internet.
03Scope every key
Give each app and user a key limited to the model routes it needs. Keep guardrail code admin-only, and replace any default master key with a long random one.
04Run the proxy with few rights
Run LiteLLM as an operating system user with minimal rights, holding only the provider keys it routes, so code that escapes reaches less.
05Gate your agents' risky tools
Make your agents ask a person before shell, file or browser actions, and never treat a model reply as approval. A reply changed at the gateway then can't drive them.
On your platform
Settings you already have that help against this hack. Last checked 1 Dec 2026.
No setting on Claude Code helps with this one. Our test does.
How we test it
- 1Under a signed scope, in your staging only, you share your lockfile and name the gateway's staging address. The gateway holds fake provider keys, so no real key is in reach. Nothing to install.
- 2We check your lockfile's LiteLLM version against the floor. From outside, with no key, we ask the gateway to list its models. We don't run the escape itself.
- 3From the gateway's config you export, we flag a master key left at LiteLLM's published default, or a setting that lets the proxy start with no master key. We never sign in.
BT-08 · Vulnerable MCP server, agent framework or AI library codeBT-09 · Exposed AI infrastructure and default credentialsBT-06 · Over-scoped tokens and agent identityBT-10 · Leaked AI keys and secrets, and the abuse that follows
It fails if
- Your lockfile shows LiteLLM below v1.83.14-stable
- The gateway lists its models to a request with no key from outside your network
- Your exported config keeps LiteLLM's published default master key, or lets the proxy start without one
Does your stack run LiteLLM or another AI gateway? We'll run this test on yours.
What it reveals
Cloud Security Alliance Labs counts SourceCloud Security Alliance LabsLiteLLM AI Gateway: KEV-Listed Attack Chain Enables Full TakeoverUndated disclosed between February and June 2026. A gateway pools the keys, the guardrails and the logs, so one flaw that runs code there reaches all of them.