Skip to content

LiteLLM Vulnerability in CISA KEV: What to Patch Now

CISA added a LiteLLM flaw, CVE-2026-40217, to its Known Exploited Vulnerabilities list on 18 November 2026. Here is what it is, who is affected, and a short checklist.

By Mutahar Aslam, Founder & CEO of Paraline Tech5 min read

Paraline Blog cover for the AI tools article: LiteLLM Vulnerability in CISA KEV: What to Patch Now

If you run LiteLLM as your AI gateway, one LiteLLM vulnerability now needs your attention this week. CISA put CVE-2026-40217 on its Known Exploited Vulnerabilities (KEV) list on 18 November 2026, which means attackers have used it in the wild. This post explains what the flaw is, who it affects, and what to do, in order.

What CISA added to the KEV list

CISA's KEV catalog lists the entry as "BerriAI LiteLLM Unprotected Alternate Channel Vulnerability". The vendor is BerriAI and the product is LiteLLM. NVD records show it was added on 18 November 2026 with a due date of 2 December 2026.

That due date applies to US federal agencies. If you are not one, you have no legal deadline. Still, treat it as a signal. The flaw is already being used, so waiting makes little sense.

CISA's required action is the usual one: apply the vendor's mitigations, follow its binding directive, or stop using the product if mitigations are not available. For known ransomware use, the entry says "Unknown". It names no attackers.

How the LiteLLM vulnerability works

LiteLLM is a proxy that sits between your apps and model providers such as OpenAI or Anthropic. It holds your provider keys and issues "Virtual Keys" to your apps. That makes it a valuable target.

The flaw is in a custom-code guardrail feature. According to the GitHub advisory, the endpoint /guardrails/test_custom_code "runs user-supplied Python in a hand-rolled sandbox". Bytecode techniques can escape that sandbox. NVD describes the result as one that "allows remote attackers to execute arbitrary code via bytecode rewriting".

Two details from the advisory matter:

  • A credential is needed. With default settings, a caller must hold a proxy-admin credential before the endpoint will respond. It is not open to anyone on the internet.
  • The default image runs as root. If the code escapes the sandbox in the default Docker image, it runs with root rights inside the container.

Why a credential requirement is not much comfort

It is tempting to read "needs admin" and relax. Do not.

Google Threat Intelligence Group (GTIG) has reported an actor using CVE-2026-40217 in an LLMjacking intrusion, which is theft of access to paid AI models. In its 16 November post, GTIG describes "a sandbox escape in LiteLLM that allows an attacker to elevate limited-access inference keys". In plain words, an ordinary Virtual Key could become a proxy-admin credential.

Some care is needed with what this proves. GTIG's 2 November post also names this CVE, but describes the flaw differently. The two posts do not match, and the advisory describes the sandbox issue. So we cannot tell you exactly how the intrusion worked. We also cannot give a date of exploitation or a victim's version, because GTIG gives neither. Those two dates are publication dates, not attack dates.

The safe reading is simple. Attackers are targeting this CVE, and a low-privilege key may be enough to get closer to admin. A Cloud Security Alliance research note also links it to other flaws in a chain. That part comes from secondary reporting that we have not checked against the advisories, so treat it as context only.

How serious is the score?

Sources disagree, and you should know why. The CVE record lists CVSS 8.8 High. NVD itself did not score it. The GitHub advisory rates it Moderate, with a CVSS v4 score of 5.9. Neither number tells you about your own setup. Active exploitation is the better guide, and KEV listing is the proof of that.

Which versions are affected

As of 22 November 2026, the advisory and NVD agree on the affected range for the litellm package on PyPI: 1.81.8 up to, but not including, 1.83.10.

Versions below 1.81.8 are outside that range, but we are not claiming they are safe. They may have other problems. The simplest path is to move to a current release.

For the fix, the advisory is slightly inconsistent. Its patched-versions field says 1.83.10 or later, while its text says to upgrade to 1.83.11 or later. It adds that the sandbox was replaced with RestrictedPython. So the advice is:

  • Upgrade to the latest stable release.
  • The advisory itself says "1.83.11 or later" for this CVE.
  • Look at LiteLLM's release page for the current version, because it changes often.

A short checklist for this week

  1. Find every LiteLLM instance. Include staging, test and forgotten side projects.
  2. Check the version. Run pip show litellm or look inside your container image.
  3. Upgrade to the latest stable release. Pin the version in your lockfile or image tag, then redeploy.
  4. Block the endpoint if you cannot upgrade today. The advisory's workaround is to block POST /guardrails/test_custom_code at your reverse proxy or API gateway. For example, in nginx:
location = /guardrails/test_custom_code {
    return 403;
}
  1. Review who holds admin. Count your proxy-admin credentials and remove any you do not need.
  2. Look at your logs. Search for calls to the guardrail endpoint and for unexpected key activity.
  3. Check your provider bills. LLMjacking shows up as unexplained model usage.

The advisory supports the endpoint block and notes that the default image runs as root. The next two points are general hardening, not LiteLLM's own advice: do not expose the proxy to the public internet when you do not have to, and run it as a non-root user.

If you think you were compromised

The CSA note recommends rotating secrets if you suspect a compromise. According to CSA, that means the LiteLLM master key, your upstream provider keys, database credentials and all Virtual Keys. This is CSA's guidance, not LiteLLM's. It is a sensible order of work, but it is also disruptive, so do it when you have real signs of trouble or cannot rule one out.

Rotate after you patch. Otherwise, an attacker who still has access can pick up the new keys.

What this means for people building on AI gateways

An AI gateway is a single point that holds many secrets. When it has a flaw, one bug can expose every provider account behind it. A few habits reduce that risk:

  • Keep the gateway off the public internet where you can.
  • Give each app its own key, with spend limits.
  • Alert on unusual usage, not only on errors.
  • Treat gateway updates like operating system updates: on a schedule, with an owner.

If you want help reviewing how an AI gateway is deployed, see our contact page.

What to do next

Today: find your LiteLLM instances, check the version, and upgrade to the latest stable release. If you cannot, block the guardrail endpoint at your proxy. This week: review admin credentials, read your logs, and check your provider usage. If anything looks wrong, rotate keys using the CSA list above. Check the GitHub advisory again before you finish, since version guidance can change.

Common questions

Is this LiteLLM vulnerability unauthenticated?

The advisory says a proxy-admin credential is needed in default configurations. Google Threat Intelligence Group reports that an actor used the flaw to raise ordinary Virtual Keys to proxy-admin, so treat limited keys as part of your exposure.

Which version should I upgrade to?

Upgrade to the latest stable LiteLLM release. The GitHub advisory says 1.83.11 or later for this CVE. Check the LiteLLM release notes for the current version, because it changes often.

Does the CISA deadline apply to me?

The 2 December 2026 due date applies to US federal agencies. For everyone else it is a signal of urgency, not a legal requirement.

How serious is the score?

It depends on who you ask. The CVE record lists CVSS 8.8 High. The GitHub advisory rates it Moderate, with a CVSS v4 score of 5.9. Either way, active exploitation matters more than the number.

Keep reading