Used in attacks· fix by 2026-12-028.8High

BerriAI LiteLLM

CVE-2026-40217

BerriAI LiteLLM contains an unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.

What this means for your business

  • It affects BerriAI LiteLLM. It matters if your company, or a supplier that handles your data, runs it.
  • Attackers are already using it. CISA added it to its list of flaws used in real attacks on 18 November 2026.
  • An attacker can use it remotely, over a network, with an ordinary user login, and without anyone at your company clicking anything.
  • FIRST's prediction model gives it a 83% chance of attack attempts being seen in the next 30 days, ranking above 99% of all known flaws.

What to do

  1. 1Check whether your company or your suppliers run BerriAI LiteLLM, and which version. The affected versions are listed further down this page.
  2. 2If you do, follow CISA's required action below. No patch reference has been published yet.
  3. 3Treat it as urgent. US federal agencies must fix it by 2 December 2026. That deadline does not apply to private companies, but it shows how seriously CISA takes it.
  4. 4Because attackers have used it, check the affected systems for signs of a break-in, not only for the update.

Fastnexa security experts

Attackers are already using this flaw. Is your BerriAI LiteLLM exposed?

Tell us where you run BerriAI LiteLLM and a Fastnexa penetration tester will check whether this flaw, or others like it, can be used against your websites, apps and network.

The full test is free for our first 10 founding clients until 31 December 2026. See the offer

Book a 30-min callWhatsApp us

Think you’ve already been hit? Don’t wait on a form: call or WhatsApp +1 (732) 454 2616. We reply within 1 hour, 24/7. Emergency help →

Required action

Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

CISA’s wording, unedited. The notes it mentions are in CISA’s catalogue entry.

Scoring

CVSS
8.8 (v3.1)
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-420
Assigned by
cve@mitre.org

Dates

Published
2026-11-18
Last modified
2026-10-26
Added to KEV
2026-11-18
Remediation due
2026-12-02
Sources
CISA KEV, NVD

Affected products

  • Litellm Litellm- 2026-04-08

As listed in the NVD configuration data. Not a statement about your estate.

References