Skip to content
56North

IncidentDial · Usage

Your AI gateway holds all your keys: LiteLLM flaw CVE-2026-40217 is exploited, deadline 2 December

Pascal Mennesson
By Pascal Mennesson

Founder, 56North · Published · 2 min read

What happened

LiteLLM is an open-source gateway: it receives calls from applications and relays them to OpenAI, Anthropic, Mistral and others. It therefore centralises the keys to those providers, and often the database credentials too.

Flaw CVE-2026-40217 affects a feature that tests custom guardrails. According to LiteLLM's advisory as reported by Rescana, it runs caller-supplied code in an escapable sandbox. In the official Docker image, the process runs with the highest privileges by default.

On 18 November 2026, CISA added it to its catalogue of exploited vulnerabilities, with a 2 December deadline. Neither LiteLLM nor CISA has published details of the attacks.

What is established, and what is not

Established. Affected versions run from 1.81.8 up to, but not including, 1.83.10. An attacker needs admin access to the gateway, or another flaw that grants it, and network reach to its admin interface.

Disputed. Google's threat intelligence group (GTIG) described on 2 November an intrusion where ordinary keys were turned into admin keys, and attributes it to this flaw. Other researchers see a separate bug.

Our reading. Sources do not give the same fixed version. To cover related flaws as well, we recommend version 1.84.0 or later.

Why this is a leadership issue

An AI gateway is a mandatory checkpoint. That is its strength: it lets you control and trace usage. It is also its risk: whoever takes it gets every key at once, and with them the company's bill and data.

Many teams installed one quickly for a project, without recording it in any inventory. Nobody then knows it exists, or which version runs.

What a CIO should check before 2 December

  • The inventory of every LiteLLM gateway, including those started by developers or bundled in products.
  • The version of each, and the upgrade to 1.84.0 or later.
  • Meanwhile: block access to /guardrails/test_custom_code and close the admin interface to the public network.
  • Keys: rotate the master key and admin keys of any exposed gateway, then provider keys if compromise is possible.
  • Logs: look for calls to that endpoint and unexpected new keys, ideally back to 15 April 2026.

The traps

  • Patching without rotating keys: a key stolen before the fix remains valid.
  • Forgetting hidden gateways, started for a test and never stopped.
  • Following a moving tag ("latest") instead of a pinned, verified version.

What a well-equipped team does differently

It knows each of its gateways, its version and its owner. It pins versions, separates administration from regular traffic, and can say at any time which keys exist and who uses them.

That is the logic of Cockpit: the AI register links each use to its technical path, and keeps dated evidence of changes.

The dangerThe advice
LiteLLM gateways run without anyone knowing their version or owner.Inventory every gateway, pin its version and name an owner.
The flaw is patched, but keys that may have leaked remain active.Rotate the master key, admin keys and, if in doubt, provider keys.
The gateway's admin interface is reachable from the internet.Keep it on the internal network and separate it from application traffic.

Questions and answers

Am I affected if I do not use LiteLLM directly?

Possibly: LiteLLM is bundled in other products and often started by development teams. Only an inventory can answer.

Which version should I install?

Sources differ on the first fixed version. To cover related flaws too, aim for 1.84.0 or later, pinned.

Why the 2 December deadline?

It is the date CISA set for US federal agencies. It does not bind European companies, but it signals real exploitation.

Sources

Every source was opened and dated before publication.

  1. Rescana, « CVE-2026-40217: LiteLLM Guardrail Sandbox Escape » (novembre 2026)
  2. Let's Data Science, « CISA Adds Four Exploited Flaws, Including LiteLLM, to KEV Catalog » (novembre 2026)
  3. SmartScope, « LiteLLM: CISA Adds Vulnerability CVE-2026-40217 to KEV » (18 novembre 2026)
  4. Cloud Security Alliance, « LiteLLM AI Gateway: KEV-Listed Attack Chain Enables Full Takeover » (17 juin 2026)

Do you know which AI systems run in your company, and who answers for them?

Request an assessment

A free 30-minute first conversation, no commitment.