
On 18 November, CISA added a flaw in LiteLLM, one of the most widely used AI gateways, to its Known Exploited Vulnerabilities catalogue. It is the fourth vulnerability in this product to enter the catalogue in 2026. The attackers' interest is easy to explain: an AI gateway holds the keys to every model provider the company uses, and those keys can be turned into money.
What an AI gateway is and why it is a target
An AI gateway sits between the company's applications and its model providers. It distributes traffic, controls spend and issues internal keys to each team. To do that, it holds the real keys for each provider, and often database credentials and credentials for other connected tools as well.
Whoever compromises it gains three things: the keys, the content of the conversations passing through it and a host from which to move further in.
The vulnerability
CVE-2026-40217 lies in the feature that lets you test guardrails written in custom code. LiteLLM ran that code in a bespoke sandbox, which could be escaped to execute code in the gateway process. In the default Docker image, that process runs as root.
Getting that far requires a credential with administrative permissions. In practice, attackers obtain one in two ways: by trying default keys, or by escalating from an ordinary user key through other flaws in the same product.
Severity is scored at between 5.9 and 8.8, depending on the privileges assumed, and there is no agreement on the fixed version either: the advisory mentions both 1.83.10 and 1.83.11, while other analyses place the complete fix for the chain in 1.83.14. The prudent recommendation is to install a current release.
Seven months between the first probe and the alert
| Date | Milestone |
|---|---|
| 8 April | The flaw is disclosed, still without a patch. |
| 15 April | First probes against honeypot servers: 520 identical attempts in a single burst. |
| From mid-April | The fixed versions are released. |
| 15 April to 24 May | 569 requests in total, including the first-day burst. They use 47 different guessed keys, such as sk-1234, sk-admin or sk-changeme, and dump the environment variables in search of secrets. |
| 18 November | CISA adds it to its Known Exploited Vulnerabilities catalogue. |
217 days passed between the first probe and the official alert. Anyone who waited for the alert before updating was exposed for the whole of that time.
LLMjacking: the business behind it
Using stolen keys to consume AI models at the victim's expense has a name: LLMjacking. According to published research, some organisations have been hit with fraudulent charges of more than 100,000 dollars in a single day, and cumulative charges of up to a million before the keys were revoked. Stolen keys feed resale services, and at least one offers unlimited access to models for around 60 dollars a month.
The cost is not only the bill. The questions and documents your employees send to the models pass through the gateway, and whoever controls the gateway can read them.
Why updating is not enough
The update closes the way in, but it does not undo what the intruder left behind or bring back what they took. It does not remove an added administrator account, or a guardrail or callback created to maintain access. And any keys that were in the gateway's memory or environment variables must be assumed to have been copied.
What to do now
- Find out whether you have it. LiteLLM often arrives bundled inside other products, or a team deploys it on its own initiative. Look for it in your repositories, container images and dependency files.
- Update to a current release and pin the image by its cryptographic digest, not by the "latest" tag.
- Take the admin console and API off the internet. While you update, block the
/guardrails/test_custom_codepath at the reverse proxy. - Review who is an administrator and compare that with who should be. Audit the custom-code guardrails and the callbacks that have been configured.
- Search the logs for requests to that path, default keys, empty authorisation headers and bursts of single-token requests, which is how stolen keys are validated.
- Rotate the keys for every provider, the master key and the database credentials if the gateway was reachable by untrusted users.
- Set spending limits with each provider and run the container without root privileges.
The underlying problem: AI without an inventory
This story repeats itself with other tools. Teams adopt AI agents, gateways and connectors faster than security can inventory them, and each one holds credentials with far-reaching access. We saw it in September with seven other exploited vulnerabilities in this type of product.
Knowing which AI tools are in use, with what permissions and what they do is the first step. That is what DarkControl AI is for, and for reviewing the code of your in-house integrations there is RAVEN.


