Skip to content
FlawDB
Sign in

CVE-2026-40217

HIGH 8.8ExploitedPoC

LiteLLM has a sandbox escape in custom-code guardrail

Also known as GHSA-wxxx-gvqv-xp7p, PYSEC-2026-2601

Mitigation

  • Upgrade litellm to 1.83.10 or later.

Who should check

  • Projects that depend on PyPI package litellm (>= 1.81.8, < 1.83.10)
  • Anyone running BerriAI LiteLLM bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f

Vulnerability facts

Affected
litellm >= 1.81.8, < 1.83.10
Fixed in
1.83.10
Exploited in the wild
Yes: in CISA KEV since 2026-11-18; federal due date 2026-12-02
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, login needed
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
CWE
CWE-420
Published
Modified

Description

LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI litellm>= 1.81.8, < 1.83.101.83.10osv
BerriAI LiteLLMbb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f—cvelist

Timeline

  1. 2026-04-10 Published
  2. 2026-11-18 Added to CISA KEV (exploited in the wild)
  3. 2026-11-19 Last modified
  4. 2026-12-02 CISA remediation due date for US federal agencies

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-40217. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-40217.md
Affected: litellm >= 1.81.8, < 1.83.10
Fixed in: 1.83.10

Steps:
1. Search this machine and project for litellm (PyPI), BerriAI LiteLLM: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-40217 being exploited?

Yes. CISA lists CVE-2026-40217 in its Known Exploited Vulnerabilities catalog since 2026-11-18, which means attacks have been seen. Public exploit code or a proof of concept is available.

How serious is CVE-2026-40217?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2026-40217?

litellm >= 1.81.8, < 1.83.10.

Is there a fix for CVE-2026-40217?

Yes. Fixed in 1.83.10. Upgrade litellm to 1.83.10 or later.

How do I check if I'm affected by CVE-2026-40217?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
HIGH 7.0CVE-2026-137974

Tuned: local privilege escalation through untrusted mount table parsing in the spindown-disk profile

Linux kernel+1
HIGH 7.8CVE-2026-137941

Gimp: gimp: heap out-of-bounds write via unvalidated levels channel property

Linux kernel+1
HIGH 7.3CVE-2026-137898

Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling

Linux kernel+1
MEDIUM 5.3CVE-2026-124825

389-ds-base: 389-ds-base: integer truncation in content synchronization plugin causes denial of service

Red Hat (all products)
MEDIUM 6.5CVE-2026-125633

Samba: samba4: hinfo type confusion in dns_to_dnsp_convert crashes the ad dc rpc worker

Windows+1
Sponsors