---
title: "LiteLLM Vulnerability: 4 Exploited Flaws, Which Version to Run"
url: https://syntaxradar.com/radar/litellm-vulnerability-cve-2026-40217-fix-versions
author: "Abdul Rehman, Founder and publisher"
publishedAt: 2026-11-29T05:00:00.000Z
dateModified: 2026-11-29T05:00:00.000Z
category: "Systems"
topic: "litellm vulnerability"
primarySource: https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p
summary: "LiteLLM vulnerability CVE-2026-40217 is exploited. See affected versions for all four CISA-listed flaws, the release to run and a clear fix checklist."
---


# LiteLLM Vulnerability: 4 Exploited Flaws, Which Version to Run

**Short answer:** CISA added CVE-2026-40217, a LiteLLM guardrail sandbox escape, to its exploited flaws list on November 18, 2026, with a December 2 federal deadline. It is the fourth LiteLLM entry added in 2026.

**Takeaway:** Patching only CVE-2026-40217 leaves a LiteLLM proxy exposed to other published flaws; our advisory check points to 1.111.0 or later, plus a hunt for signs of earlier access.

**Key figures (as reported by the source):**
- Fixes CVE-2026-40217: 1.83.10 / 1.83.11
- Fixes all four KEV flaws: 1.84.0
- Matched no range in 29 checked: 1.111.0

A LiteLLM vulnerability that allows code execution on the proxy server, CVE-2026-40217, is on [CISA's list of exploited flaws](https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json), with a December 2, 2026 deadline for US federal civilian agencies. As of November 28, 2026, the [GitHub advisory](https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p) puts the fix at 1.83.10 in one field and 1.83.11 in another. Do not stop there: closing all four LiteLLM flaws CISA listed in 2026 takes 1.84.0, and our check of the project's [published advisories](https://github.com/BerriAI/litellm/security/advisories) points to [1.111.0](https://github.com/BerriAI/litellm/releases/tag/v1.111.0) or later.

LiteLLM is a proxy, often called an AI gateway, that sits between applications and model providers. It can hold provider API keys, so a break-in can reach far past one server.

### What is the LiteLLM vulnerability CVE-2026-40217?

[LiteLLM guardrails](https://docs.litellm.ai/docs/proxy/guardrails/quick_start) are checks the proxy runs on model traffic, such as prompt injection detection or masking personal data, and one kind lets an administrator supply Python-like custom code. The flaw sits in the endpoint that tests that code, `POST /guardrails/test_custom_code`. According to the [LiteLLM security advisory](https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p), the sandbox meant to contain the code can be escaped, giving arbitrary code execution inside the proxy process. That process runs as root in the default LiteLLM Docker image.

The advisory lists versions from 1.81.8 up to, but not including, 1.83.10 as affected. It says reaching the endpoint requires a proxy-admin credential in default configurations, and that the old sandbox was replaced with RestrictedPython, a library for running restricted code. CISA [added the flaw on November 18, 2026](https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json), marks ransomware use as unknown and names no attacker.

Severity scores disagree, so a scanner may rank this flaw differently from the project:

<table>
<thead><tr><th>Source</th><th>Score</th><th>What drives it</th></tr></thead>
<tbody>
<tr><td><a href="https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p">GitHub advisory (CVSS 4.0)</a></td><td>5.9, medium</td><td>High attack complexity, high privileges, low data confidentiality and integrity impact, high availability impact</td></tr>
<tr><td><a href="https://nvd.nist.gov/vuln/detail/CVE-2026-40217">NVD record (CVSS 3.1)</a></td><td>8.8, high</td><td>Low complexity, low privileges, high impact on all three</td></tr>
<tr><td><a href="https://x41-dsec.de/lab/advisories/x41-2026-001-litellm">X41 D-Sec, April 8 (CVSS 4.0)</a></td><td>8.7, high</td><td>Low complexity, low privileges, high impact on all three</td></tr>
</tbody>
</table>

The 8.8 on the NVD page comes from MITRE, which assigned the CVE, and from Red Hat; CISA's enrichment adds only a rating that marks exploitation as active, and the record shows no separate NIST score. The gap comes from different assumptions about how much access an attacker needs, how hard the escape is and how much damage follows. We would patch on the higher reading.

The admin requirement is weaker protection than it sounds. [Obsidian Security reported](https://obsidiansecurity.com/blog/litellm-privilege-escalation-rce) that two other flaws, CVE-2026-47101 and CVE-2026-47102, could be chained with this one so that a default low-privilege user ends up with admin rights and code execution. It names 1.83.14-stable as the first release with all three fixes.

### LiteLLM CVE list: four exploited flaws in 2026

CISA's catalog dated November 27, 2026 holds four LiteLLM entries, all added in 2026. The table pairs each [catalog entry](https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json) with its project advisory.

<table>
<thead><tr><th>Flaw</th><th>Login needed</th><th>Affected</th><th>Fixed in</th><th>Added to KEV (federal due date)</th></tr></thead>
<tbody>
<tr><td><a href="https://github.com/BerriAI/litellm/security/advisories/GHSA-r75f-5x8p-qvmc">CVE-2026-42208</a>, SQL injection in API key check</td><td>None</td><td>1.81.16 to before 1.83.7</td><td>1.83.7</td><td>May 8 (May 11)</td></tr>
<tr><td><a href="https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g">CVE-2026-42271</a>, command execution in MCP server preview</td><td>Any valid proxy key</td><td>1.74.2 to before 1.83.7</td><td>1.83.7</td><td>June 8 (June 22)</td></tr>
<tr><td><a href="https://github.com/BerriAI/litellm/security/advisories/GHSA-7488-6r32-c95q">CVE-2026-59822</a>, MCP authentication bypass</td><td>None</td><td>Before 1.84.0</td><td>1.84.0</td><td>September 2 (September 16)</td></tr>
<tr><td><a href="https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p">CVE-2026-40217</a>, guardrail sandbox escape</td><td>Proxy admin by default (see chain above)</td><td>1.81.8 to before 1.83.10</td><td>1.83.10 or 1.83.11</td><td>November 18 (December 2)</td></tr>
</tbody>
</table>

MCP is the Model Context Protocol, used to connect AI models to outside tools, and the [LiteLLM MCP gateway](https://docs.litellm.ai/docs/mcp) provides one endpoint for those tools. The authentication bypass, [LiteLLM CVE-2026-59822](https://github.com/BerriAI/litellm/security/advisories/GHSA-7488-6r32-c95q), let a request with a made-up token reach those tools and whatever services they connect to.

![Bar chart of days from first fixed LiteLLM release to CISA KEV listing: 25, 56, 111 and 213](/uploads/blog/litellm-vulnerability-cve-2026-40217-fix-versions/img1.webp)

SyntaxRadar calculation: we counted the days from the [PyPI upload](https://pypi.org/project/litellm/#history) of each first fixed release to the KEV listing. The results are 25 days for CVE-2026-42208 (April 13 to May 8), 56 for CVE-2026-42271 (April 13 to June 8), 111 for CVE-2026-59822 (May 14 to September 2) and 213 for CVE-2026-40217 (April 19 to November 18). A listing date is not the date attacks began. It does show that a patch available for months can still end up on the exploited list, so old installs deserve the first look.

### Which LiteLLM version fixes the vulnerability?

For CVE-2026-40217 alone, take 1.83.11 over 1.83.10. The advisory's version metadata says 1.83.10 or later, while its patch note says 1.83.11. The advisory's own reference links the v1.83.10-stable release on GitHub, and we found no v1.83.11-stable tag. PyPI carries both numbers, and both declare RestrictedPython 8.1 for the proxy, though a listed dependency does not prove a complete fix.

Neither number is a sensible target. We tested version numbers against the affected ranges in 29 of the 30 [advisories on the project's GitHub page](https://github.com/BerriAI/litellm/security/advisories). We left out [one with garbled ranges](https://github.com/BerriAI/litellm/security/advisories/GHSA-mpqq-3cc5-fgh2): its open-ended 1.86 range would still catch 1.111.0, although it names 1.86.3 as the fix for that line.

<table>
<caption>SyntaxRadar calculation: published advisory ranges that still include each version, as of November 28, 2026</caption>
<thead><tr><th>Version</th><th>Why people run it</th><th>Advisory ranges matching (of 29)</th></tr></thead>
<tbody>
<tr><td>1.83.7</td><td>Fixes the first two KEV flaws</td><td>20</td></tr>
<tr><td>1.83.11</td><td>Fixes CVE-2026-40217</td><td>17</td></tr>
<tr><td>1.84.0</td><td>Fixes all four KEV flaws</td><td>13</td></tr>
<tr><td>1.106.2</td><td>Pin advised after the October incident</td><td>7</td></tr>
<tr><td>1.111.0</td><td>Released November 25</td><td>0</td></tr>
</tbody>
</table>

The 1.83.11 count includes two critical advisories. One is a [Host header authentication bypass](https://github.com/BerriAI/litellm/security/advisories/GHSA-4xpc-pv4p-pm3w), fixed in 1.84.0. The other, a [file read that can leak the master key](https://github.com/BerriAI/litellm/security/advisories/GHSA-w4c7-34wj-hqm8), still matches 1.84.0 and 1.106.2 but affects only Enterprise-licensed proxies.

One high-severity [sign-in flaw dated November 24](https://github.com/BerriAI/litellm/security/advisories/GHSA-w5h5-479w-p5hx) covers every version below 1.111.0, and its advisory names 1.111.0 as the fix. That fix, plus our range check, is why we point to 1.111.0; the target is our reading of the advisories, not a version LiteLLM names for all of them. Some older release lines received backported fixes, so read each advisory if you cannot move to a new line. A zero here means no listed range matches; it says nothing about unreported bugs.

### What have attackers done with these flaws?

CISA's listing confirms exploitation of CVE-2026-40217 but does not say how the attacks unfolded. Two research teams add detail.

[Zenity Labs reported](https://labs.zenity.io/p/threat-actors-are-trying-to-use-litellm-s-guardrail-tester-to-run-code-as-root) that its honeypots (decoy servers) logged 569 requests to the test endpoint between April 15 and May 24, 2026. About 520 were identical capability checks sent on April 15. The sensors also saw 47 different guessed keys and 64 requests with an empty authorization header. These were attempts against decoys, so they do not show how many real deployments fell.

Google's threat intelligence group [wrote on November 17, 2026](https://cloud.google.com/blog/topics/threat-intelligence/agentic-threat-activity-crosses-a-significant-threshold) that it had observed an attacker exploit the flaw to turn limited LiteLLM virtual keys, the [keys the proxy uses](https://docs.litellm.ai/docs/proxy/virtual_keys) to control model access and track spend, into full admin credentials. The report discusses this under LLMjacking, the hijacking of paid AI access. It does not name the actor or victims or date the intrusion. The [Cloud Security Alliance note](https://labs.cloudsecurityalliance.org/research/csa-research-note-litellm-cve-2026-40217-kev-20261120-csa-st/) points out that an earlier Google report, from November 2, tied the CVE to a different endpoint, so the exact attack path is not settled.

![Bar chart of published advisory ranges matching LiteLLM versions: 20, 17, 13, 7 and 0](/uploads/blog/litellm-vulnerability-cve-2026-40217-fix-versions/img2.webp)

### LiteLLM vulnerability fix: a checklist for operators

1. **Find what you run, without starting Python.** LiteLLM warns that any Python start in an environment hit by the October build, pip included, re-runs the malware. Read the version from the `litellm-<version>.dist-info` folder name in site-packages, from lockfiles, or from the image tag and digest. Include copies installed by other tools.
2. **Rule out compromised builds first.** If 1.82.7, 1.82.8 or 1.107.0 was installed, or an image ran from the `v1.107.0`, `latest`, `main-latest` or `main-stable` tags between 11:46 and 14:20 UTC on October 21 (vendor-listed index digest begins `sha256:1bbcb1443bc9`), go to the incident steps in the next section before running pip or any install command.
3. **Upgrade to 1.111.0 or later**, the target from our advisory check above. Plan the LiteLLM upgrade around an exact, pinned version and image digest. Verify the signature and test in staging, since the jump from 1.8x is large.
4. **Block endpoints if you must wait.** At the reverse proxy, block `POST /guardrails/test_custom_code`, `POST /mcp-rest/test/connection`, `POST /mcp-rest/test/tools/list` and the `/mcp/` routes (which switches off MCP use). For the SQL injection, set `disable_error_logs: true` under `general_settings`. These cover only the four KEV flaws.
5. **Shrink the blast radius.** Keep management routes off the public internet and run the container as a non-root user. Our [AI agent sandbox explainer](/radar/sub-millisecond-sandboxes-docker-wasm-micro-vms-untrusted-ai-execution) compares ways to isolate untrusted code from the host.
6. **Check logs and settings.** The [Cloud Security Alliance note](https://labs.cloudsecurityalliance.org/research/csa-research-note-litellm-cve-2026-40217-kev-20261120-csa-st/) advises searching for requests to the guardrail routes and role changes through `/user/update` or `/user/bulk_update`. Look for unknown proxy admins, guardrails, callbacks or model `api_base` addresses, plus provider billing spikes.
7. **Rotate after suspected misuse.** Preserve evidence, then replace the LiteLLM master key, proxy-admin and virtual keys, provider keys, database credentials and any cloud credentials the container could reach.

Upgrading closes a hole but does not undo earlier access. The proxy's own logs can matter too: a [separate advisory](https://github.com/BerriAI/litellm/security/advisories/GHSA-mpqq-3cc5-fgh2) says some requests that failed authorization checks left virtual keys unhashed in spend logs, and upgrading does not remove them.

### Is LiteLLM safe to use after the security issues?

It can be a reasonable choice if you patch often and treat the gateway as a high-value server; an old, internet-facing install is not. Separate from the four flaws, the project had two supply chain security incidents in 2026.

On March 24, malicious versions [1.82.7 and 1.82.8 reached PyPI](https://docs.litellm.ai/blog/security-update-march-2026) carrying a credential stealer. LiteLLM said its official proxy Docker image was not affected. On October 21, a second LiteLLM supply chain attack published a [malicious 1.107.0](https://docs.litellm.ai/blog/security-incident-oct-21-2026) to PyPI and moved the Docker tags `v1.107.0`, `latest`, `main-latest` and `main-stable` to bad images.

So the LiteLLM compromised versions to look for are 1.82.7, 1.82.8 and 1.107.0, and a machine that ran any of them should be treated as exposed. For October, the vendor says not to run `pip install` first, because starting Python can re-run the malicious files. Follow its cleanup steps, rebuild from scratch and rotate credentials.

A valid old signature does not clear a 1.107.0 image. Releases from 1.111.0-dev.3 (November 15) onward use keyless cosign signing, so update your verification command.

Do not stay on 1.106.2, the pin the vendor advised in October. It answered the compromise, and all seven advisory ranges that include it in our check were published after that incident.

If your gateway gives outside customers access to OpenAI models, check [OpenAI usage policies](/radar/openai-usage-policies-gateway-approval-training-ban) as well, since they require prior approval for services that offer third parties direct model access.

### What to watch next

December 2, 2026 is the federal deadline for CVE-2026-40217. LiteLLM also [plans an automated check](https://docs.litellm.ai/blog/security-changes-after-oct-21-2026) of published packages and images against their source code, with a December 31, 2026 target. For other products on the same catalog, our [CISA KEV roundup](/radar/cisa-kev-sap-vcenter-cisco-roller-exploited-flaws) covers the November 20 additions, and our [Cisco Expressway vulnerability guide](/radar/cisco-expressway-vulnerability-cve-2026-76466-kev) walks through one patch decision in detail.

The practical answer to this LiteLLM vulnerability is to move to 1.111.0 or a later verified release, then check whether anyone got in before you did.

## Frequently asked questions

### When is the CISA deadline for the LiteLLM vulnerability?
CISA added CVE-2026-40217 to the Known Exploited Vulnerabilities catalog on November 18, 2026, with a December 2, 2026 remediation deadline. The deadline binds US federal civilian agencies. Other operators can treat it as a useful target date, since the listing means attackers have already used the flaw.

### Does CVE-2026-40217 require admin access?
The project's advisory says a proxy-admin credential is required in default configurations. The NVD record scores it as needing only low privileges, and Obsidian Security reported a chain with two other flaws that took a default low-privilege user to admin. Do not rely on the admin requirement as protection.

### Is blocking the endpoint enough if I cannot upgrade?
Blocking POST /guardrails/test_custom_code at a reverse proxy or API gateway is the advisory's workaround for CVE-2026-40217 only. The other three exploited flaws need their own workarounds, and the project's other published advisories are separate again. Treat blocking as a short delay while you schedule the upgrade.

### How do I check my LiteLLM version?
If a compromised build could have run, do not start Python: read the version from the litellm dist-info folder name in site-packages, from lockfiles, or from the image tag and digest. In a known-clean environment, pip show litellm also works. Check build pipelines and tools that install LiteLLM as a dependency too. As of November 28, 2026, anything below 1.111.0 falls inside at least one published advisory range.

## Source
Based on CISA KEV and GitHub advisories. https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p

---
Published on SyntaxRadar: https://syntaxradar.com

Canonical URL: https://syntaxradar.com/radar/litellm-vulnerability-cve-2026-40217-fix-versions

Last modified: 2026-11-29T05:00:00.000Z
