Teams stood up AI gateways to put every model key in one place and keep the bill under control. That also created a single box that can spend against every provider you use. On November 18, CISA added a LiteLLM vulnerability, CVE-2026-40217, to its KEV catalog, based on evidence of active exploitation. Google’s earlier reporting on LLMjacking describes attackers abusing a LiteLLM gateway too, but it attaches that same CVE number to a different bug. The KEV listing is real. What CISA has not said is that the exploitation it saw was LLMjacking.
What CISA Added, and What the CVE Actually Is
CISA’s November 18 alert says it added four vulnerabilities to the Known Exploited Vulnerabilities catalog “based on evidence of active exploitation.” One of them is “CVE-2026-40217 BerriAI LiteLLM Unprotected Alternate Channel Vulnerability.” The alert does not mention LLMjacking, Google, or any named actor. The KEV entry sets the date added as 2026-11-18, the due date as 2026-12-02, known ransomware campaign use as “Unknown,” and forensic triage as “No.” It lists CWE-420. The short description is an unprotected alternate channel that “could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.”
That December 2 date binds Federal Civilian Executive Branch agencies under Binding Operational Directive 26-04. CISA’s alert says the directive “applies only to FCEB agencies” and “encourages all organizations to adopt risk-based vulnerability management and prioritize remediation of KEV Catalog vulnerabilities.” If you run LiteLLM, treat the federal date as a useful deadline, not as someone else’s problem.
The official BerriAI GitHub security advisory matches that description, not a key-rebind bug. It says the POST /guardrails/test_custom_code endpoint runs user-supplied Python in a hand-rolled sandbox that can be escaped, “allowing arbitrary code execution in the proxy process — which runs as root in the default Docker image.” It also says, in bold, that “Reaching the endpoint requires a proxy-admin credential in default configurations.” NVD’s record, last modified November 19, describes the same endpoint and lists CWE-420 and CWE-94. NVD and GitHub’s advisory database carry a CVSS 3.1 score of 8.8 High, with privileges required set to Low. The repository advisory page itself rates it Moderate, 5.9 under CVSS 4.0, with privileges required set to High. This is not a pre-authentication bug in the default setup. I am not going to walk through the sandbox escape.
The advisory’s machine-readable range is pip package litellm versions 1.81.8 and later, before 1.83.10, with 1.83.10 as the first patched version. The same advisory’s prose says the issue was “Fixed in 1.83.11” after the hand-rolled sandbox was replaced with RestrictedPython, and “Upgrade to 1.83.11 or later.” It points to the GitHub release v1.83.10-stable as the patched release. PyPI has both 1.83.10 and 1.83.11. I am not going to pretend those two statements are the same. For this CVE, use at least the advisory’s patched version, 1.83.10, and prefer 1.83.11 or later if you want to follow the prose. If you cannot upgrade immediately, the advisory’s workaround is to block POST /guardrails/test_custom_code at your reverse proxy or API gateway. That workaround is the vendor’s, not CISA’s. CISA’s required action is to apply mitigations in accordance with vendor instructions and follow BOD 26-04 where it applies.
What Google Reported About LLMjacking
On November 2, Google Threat Intelligence Group and Mandiant published “The Rise of LLMJacking.” They describe Mandiant incidents in 2026 in which attackers hijacked enterprise access to large language models, a tactic they call LLMJacking, across financial services, retail, technology, and transportation in North America, South America, and Asia Pacific. They report fraudulent charges exceeding $100,000 in a single day in individual incidents, with cumulative charges at some organizations reaching $1 million before access was revoked. Those figures are Google’s, from the investigations they describe, not CISA’s.
In that report, after a first actor had already obtained “pre-validated Virtual Keys,” a follow-on cluster “executed targeted application logic exploitation against the victim’s LiteLLM gateway.” Google’s wording is specific: the actor “exploited a user ID rebind vulnerability in the /key/regenerate endpoint (CVE-2026-40217) to elevate standard Virtual Keys into full PROXY_ADMIN master administrative credentials.” The public CVE record and BerriAI’s advisory for CVE-2026-40217 do not describe a /key/regenerate rebind. They describe the guardrail sandbox escape. I cannot reconcile those two accounts, and I am not going to paper over the difference. What I can say from LiteLLM’s own release notes is that a fix titled “close /key/regenerate ownership-rebind” shipped in v1.85.0 and was backported into v1.84.0, both released in mid-May 2026. A gateway left on 1.83.10 or 1.83.11 may be patched for the KEV CVE and still open to the rebind path Google described. If you are patching because of that report, go to 1.84.0 or later.
Google’s hardening advice for this class of abuse includes extending vulnerability management to model proxies and routing gateways such as LiteLLM, “ensuring rapid patching against privilege escalation and authentication bypass flaws (such as CVE-2026-40217),” plus budget alerts, spending caps, and quotas on LLM services. Those recommendations are Google’s, not CISA’s.
Lock the Gateway Down Like It Holds the Keys
These steps are my recommendations, built from the official sources above, and are not a substitute for BerriAI’s advisory, CISA’s directive, or Google’s report.
- Find every LiteLLM and similar AI gateway. Include lab, developer, and “temporary” proxies. A forgotten gateway still holds provider keys.
- Patch past both issues, then restart. For CVE-2026-40217, the advisory’s patched floor is 1.83.10, with prose pointing at 1.83.11. For the /key/regenerate ownership-rebind in LiteLLM’s release notes, use 1.84.0 or later. Confirm the running container or package, not just the version you meant to deploy.
- Get the admin surface off the open internet. The GitHub advisory’s workaround is to block the custom-code guardrail test endpoint if you cannot patch yet. X41 D-Sec, which originally reported the sandbox escape, also advised restricting the management interface to trusted networks and not running the default image as root. Those are their workarounds, not CISA’s.
- Rotate the keys the gateway can use, and watch the bill. If this proxy was reachable, or if you cannot prove it was fully patched when Google’s incidents were happening, rotate the upstream provider keys it stores and review virtual keys and admin roles. Set spend alerts and quotas with your model providers, as Google recommends. That rotation step is my judgment, not a quoted CISA requirement.
The Takeaway
CISA’s listing is a reason to treat an exposed LiteLLM proxy as urgent. Google’s report is a reason to treat the gateway as a prepaid card for every model you buy. Patch far enough to cover both the CVE CISA listed and the rebind LiteLLM later closed, then look at who can still reach the admin API and which keys it still holds.
