News · · Updated November 23, 2026

LiteLLM Flaw CVE-2026-40217 Added to CISA Exploited List: Rated Moderate by Its Maker, 8.8 by Others, and What to Check

Published November 23, 2026. A news analysis built from primary sources: the CISA Known Exploited Vulnerabilities (KEV) catalog as mirrored on GitHub, the LiteLLM security advisory GHSA-wxxx-gvqv-xp7p on GitHub, the National Vulnerability Database (NVD) entry for CVE-2026-40217, the Red Hat CVE page, and the package listings on PyPI, plus our own screenshots of the pages. This article contains no affiliate links and we have no commercial relationship with BerriAI, Red Hat or any vendor named here. We did not install LiteLLM, run it, or test the flaw or the fix, and we publish no technique for exploiting it. Dates marked “ours” are our own arithmetic.

The short version

What LiteLLM is, and why a flaw in it matters

LiteLLM is an open-source Python project from BerriAI that many teams use as a gateway, or “proxy,” in front of AI model providers. Applications talk to one LiteLLM server in a common format, and the server forwards each request to whichever provider is configured. The proxy typically holds the provider API keys, the spend limits and the access rules for many users. That is why a flaw that lets someone run code inside the proxy process is more than an inconvenience: the process sits next to credentials that can spend money and read prompts.

Because LiteLLM can route to many providers, including Anthropic’s Claude models, a disclosure is due: this site uses Claude as one of its drafting tools. We have no relationship with BerriAI, and nothing in this article depends on any one model provider.

What the advisory says

The advisory is titled “Sandbox escape in custom-code guardrail.” Its facts, in order:

We say nothing here about how the escape works. The advisory deliberately says no more than “bytecode-level techniques,” and we follow that.

Screenshot of the BerriAI litellm GitHub security advisory GHSA-wxxx-gvqv-xp7p titled Sandbox escape in custom-code guardrail, rated Moderate 5.9 out of 10, affected versions 1.81.8 up to 1.83.10, patched versions 1.83.10 or later, with the workaround to block the custom code test endpoint
Our screenshot of the LiteLLM advisory on GitHub, taken November 23, 2026.

One flaw, three severity ratings

This is the part the headline numbers hide. We read three severity assessments of the same CVE. They are on different CVSS versions, so the scores are not strictly comparable, but the vectors tell a story.

Source Rating Score Privileges required Attack complexity
LiteLLM advisory on GitHub (CVSS v4.0) Moderate 5.9 High High
MITRE, the CVE issuer, shown on NVD (CVSS v3.1) High 8.8 Low Low
Red Hat (CVSS v3.1) Important 8.8 Low (same vector as MITRE) Low
NIST’s own NVD assessment “NVD assessment not yet provided” N/A N/A N/A

The gap comes down to two inputs. The maker rates the privileges required to reach the endpoint as High, because the advisory says a proxy-admin credential is needed, and the attack complexity as High. MITRE and Red Hat use the vector AV:N/AC:L/PR:L, which says low privileges and low complexity. Red Hat’s own written statement, though, agrees with the advisory on the practical point: it calls the attacker “authenticated,” says administration endpoints “require administrative credentials,” and says that requirement keeps the flaw from being Critical. In other words, Red Hat’s prose and its numeric vector do not describe the same attacker as neatly as one would expect. We do not know why, and we are not guessing.

What matters for a reader: the score you see depends on which page you open, and none of the three tells you whether anyone is actually being attacked. That is what the KEV listing is for.

Screenshot of the National Vulnerability Database page for CVE-2026-40217 showing the description of LiteLLM through 2026-04-08 allowing remote attackers to execute arbitrary code, NVD published April 10 2026, last modified November 20 2026, NIST assessment not yet provided and MITRE and Red Hat both scoring 8.8 High
Our screenshot of the NVD page for CVE-2026-40217, taken November 23, 2026.

What the KEV listing does and does not tell you

CISA’s Known Exploited Vulnerabilities catalog is a list of flaws for which CISA says it has evidence of active exploitation. CISA’s own website refuses automated reads, so we read the official mirror on GitHub, which showed catalog version 2026.11.20 with 1,790 entries. The entry for CVE-2026-40217 says:

What the entry does not say: who exploited it, how many systems, against whom, or how CISA learned of it. We therefore cannot say anything about the attacks. The due date applies to US federal agencies, but the catalog is widely used by everyone else as a prioritisation list.

The timeline, with a seven-month gap

Every date below is from a page we opened, except the last row, which is our own calculation.

Date (2026) Event Source
April 10 CVE-2026-40217 public; NVD publishes the entry NVD, Red Hat
April 19 litellm 1.83.10 uploaded to PyPI PyPI
April 22 litellm 1.83.11 uploaded to PyPI PyPI
May 7 GitHub security advisory published GitHub
November 18 Added to CISA KEV, due December 2 KEV (GitHub mirror)
November 20 NVD and Red Hat pages last modified NVD, Red Hat
210 days Between the 1.83.11 upload and the KEV addition (ours) Our calculation

A seven-month gap is common enough in security that it should not be read as drama. It does mean something practical: anyone who deployed LiteLLM in the spring and did not update has had the fix available for most of the year, and a flaw does not have to be new to be used.

A small inconsistency in the advisory is worth noting for anyone who pins versions. The patched-versions field says 1.83.10 or later, and the reference points to the release v1.83.10-stable. The text of the same advisory says “Fixed in 1.83.11” and tells readers to upgrade to 1.83.11 or later. PyPI shows both versions exist, three days apart. The 1.83.10-stable release page we opened, in the part we read, carries a Docker signature-verification note and no security statement; a page for a v1.83.11-stable tag returned “not found,” though the tag may be named differently. We do not know which version is the first one actually fixed. The safe advice is not to guess: move to a current release and avoid both.

A fourth LiteLLM entry in the catalog this year

The catalog lists four LiteLLM entries added in 2026. The descriptions below are CISA’s own, shortened.

CVE Added to KEV CISA’s name for it
CVE-2026-42208 May 8 SQL injection; could expose the proxy’s database and the credentials it manages
CVE-2026-42271 June 8 Command injection; could let an authenticated user run commands on the host
CVE-2026-59822 September 2 Improper authentication in the MCP Streamable HTTP endpoint
CVE-2026-40217 November 18 Unprotected alternate channel; code execution through the custom-code guardrail endpoint

Four entries in about six months, across four different weakness types, is a signal about where attention is going: AI gateways are a young, fast-moving class of software that sits next to valuable credentials. We do not claim anything about the quality of LiteLLM’s code. A widely used project attracts more scrutiny and more attackers, and a project that publishes advisories, as this one does, is easier to track than one that does not. Our reading is only that an operator of an AI gateway should treat it like any other internet-facing credential store and subscribe to its advisories.

NVD also lists Red Hat products in the affected-software configuration for this CVE, among them Ansible Automation Platform, OpenShift AI and OpenShift Lightspeed, each with its own version range. We did not read Red Hat’s errata, so we cannot say which fixed builds apply to which product. If you use those products, read Red Hat’s page and the linked errata rather than relying on the LiteLLM version numbers above.

Screenshot of the Red Hat CVE page for CVE-2026-40217 showing severity Important, CVSS v3 score 8.8, public on April 10 2026, and a statement that exploitation needs an authenticated attacker with administrative credentials
Our screenshot of Red Hat’s page for CVE-2026-40217, taken November 23, 2026.

What to check: a practical list

These steps combine the advisory’s own wording with general good practice. We have not tested them. Where a step is our suggestion and not the advisory’s, we say so.

  1. Find every LiteLLM you run. Look in container images, virtual environments, CI jobs and developer machines, not only the production proxy. Run pip show litellm or check the image tag.
  2. Compare the version. Anything from 1.81.8 up to but not including 1.83.10 is in the affected range. Treat 1.83.10 and 1.83.11 as uncertain, as explained above, and move to a current release.
  3. Upgrade. PyPI listed 1.110.2 as the current version when we looked on November 23. Read the release notes for breaking changes between your version and the new one before a production rollout.
  4. If you cannot upgrade yet, block POST /guardrails/test_custom_code at the reverse proxy or API gateway, as the advisory says. Check that the rule actually applies to the path your clients use.
  5. Check who holds proxy-admin credentials. The advisory’s condition is a proxy-admin credential. List who has the master key or admin tokens and whether any are shared, embedded in scripts or exposed in logs. This is our suggestion.
  6. Look at exposure. Is the proxy reachable from the internet, or only from your network? Is the admin interface behind a separate control? This is our suggestion.
  7. Consider the root question. The advisory says the default Docker image runs the proxy as root. Whether you can run it as a non-root user, and with a read-only file system, is worth asking your platform team. This is our suggestion, not the advisory’s.
  8. If you suspect a compromise, remember what the proxy holds: provider API keys and user keys. Rotating them is cheap compared with finding out later. We cannot tell you whether you were affected; check your own logs for requests to the endpoint above. CISA’s entry also refers to its forensic triage requirements for federal systems.

What we could not confirm

Frequently asked questions

What is CVE-2026-40217?

A flaw in the LiteLLM AI gateway where a custom-code guardrail endpoint runs user-supplied Python in a hand-built sandbox that can be escaped, according to the project’s advisory. It allows arbitrary code execution in the proxy process.

Is it being exploited?

CISA added it to its Known Exploited Vulnerabilities catalog on November 18, 2026, which means CISA says it has evidence of exploitation. The entry gives no further detail.

Which LiteLLM versions are affected?

From 1.81.8 up to but not including 1.83.10, per the advisory and NVD. The advisory text also says “fixed in 1.83.11,” so move to a current release.

Do I need to be an admin to be attacked?

The advisory says reaching the endpoint requires a proxy-admin credential in default configurations. MITRE’s score assumes low privileges instead. Both assessments exist; treat stolen or shared admin credentials as a real risk.

What if I cannot upgrade today?

Block POST /guardrails/test_custom_code at your reverse proxy or API gateway, as the advisory says, and plan the upgrade.

Where are the sources?

The LiteLLM advisory GHSA-wxxx-gvqv-xp7p, the NVD entry for CVE-2026-40217, the Red Hat CVE page, the litellm package on PyPI, and the CISA KEV data repository on GitHub. All screenshots are ours, taken November 23, 2026.

Related reading