Syntaxradar: Tech insights. Always ahead.

LiteLLM Vulnerability: 4 Exploited Flaws, Which Version to Run

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.

Abdul Rehman

Abdul Rehman

Founder and publisher · · 8 min read

Researched and drafted with AI tools. How we use AI

LiteLLM Vulnerability: 4 Exploited Flaws, Which Version to Run

The short version

1.83.10 / 1.83.11
Fixes CVE-2026-40217
1.84.0
Fixes all four KEV flaws
1.111.0
Matched no range in 29 checked

Why it matters: 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.

On this page

A LiteLLM vulnerability that allows code execution on the proxy server, CVE-2026-40217, is on CISA's list of exploited flaws, with a December 2, 2026 deadline for US federal civilian agencies. As of November 28, 2026, the GitHub advisory 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 points to 1.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 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, 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, marks ransomware use as unknown and names no attacker.

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

SourceScoreWhat drives it
GitHub advisory (CVSS 4.0)5.9, mediumHigh attack complexity, high privileges, low data confidentiality and integrity impact, high availability impact
NVD record (CVSS 3.1)8.8, highLow complexity, low privileges, high impact on all three
X41 D-Sec, April 8 (CVSS 4.0)8.7, highLow complexity, low privileges, high impact on all three

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 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 with its project advisory.

FlawLogin neededAffectedFixed inAdded to KEV (federal due date)
CVE-2026-42208, SQL injection in API key checkNone1.81.16 to before 1.83.71.83.7May 8 (May 11)
CVE-2026-42271, command execution in MCP server previewAny valid proxy key1.74.2 to before 1.83.71.83.7June 8 (June 22)
CVE-2026-59822, MCP authentication bypassNoneBefore 1.84.01.84.0September 2 (September 16)
CVE-2026-40217, guardrail sandbox escapeProxy admin by default (see chain above)1.81.8 to before 1.83.101.83.10 or 1.83.11November 18 (December 2)

MCP is the Model Context Protocol, used to connect AI models to outside tools, and the LiteLLM MCP gateway provides one endpoint for those tools. The authentication bypass, LiteLLM CVE-2026-59822, 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
Bar chart of days from first fixed LiteLLM release to CISA KEV listing: 25, 56, 111 and 213

SyntaxRadar calculation: we counted the days from the PyPI upload 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. We left out one with garbled ranges: its open-ended 1.86 range would still catch 1.111.0, although it names 1.86.3 as the fix for that line.

SyntaxRadar calculation: published advisory ranges that still include each version, as of November 28, 2026
VersionWhy people run itAdvisory ranges matching (of 29)
1.83.7Fixes the first two KEV flaws20
1.83.11Fixes CVE-2026-4021717
1.84.0Fixes all four KEV flaws13
1.106.2Pin advised after the October incident7
1.111.0Released November 250

The 1.83.11 count includes two critical advisories. One is a Host header authentication bypass, fixed in 1.84.0. The other, a file read that can leak the master key, still matches 1.84.0 and 1.106.2 but affects only Enterprise-licensed proxies.

One high-severity sign-in flaw dated November 24 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 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 that it had observed an attacker exploit the flaw to turn limited LiteLLM virtual keys, the keys the proxy uses 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 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
Bar chart of published advisory ranges matching LiteLLM versions: 20, 17, 13, 7 and 0

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 compares ways to isolate untrusted code from the host.
  6. Check logs and settings. The Cloud Security Alliance note 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 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 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 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 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 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 covers the November 20 additions, and our Cisco Expressway vulnerability guide 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.

Questions readers ask

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.

Sources

  1. github.com
Abdul Rehman

Written by

Abdul Rehman

Founder and publisher at Syntaxradar. More in Systems.

Keep reading

More in Systems

See all

The tech that matters, in your inbox.

The day's best stories and why they matter, in one short email. Free, unsubscribe anytime.

Latest stories

Front page