CISA added CVE-2026-40217 to its Known Exploited Vulnerabilities catalog on 2026-11-18, confirming active exploitation of a BerriAI LiteLLM flaw that lets authenticated (low-privileged) remote attackers execute arbitrary code through the /guardrails/test_custom_code endpoint.
What Is It
CVE-2026-40217 is an unprotected alternate channel vulnerability (CWE-420) in BerriAI LiteLLM. According to NVD, LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. Red Hat also classifies the issue as code injection (CWE-94).
The CVSS 3.1 base score is 8.8 (HIGH), with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. That means the flaw is reachable over the network, has low attack complexity, needs no user interaction, and requires low privileges.
Why It Matters
CISA added this CVE to the KEV catalog on 2026-11-18, which confirms exploitation in the wild. Earlier CISA SSVC scoring, dated 2026-06-15, rated exploitation as "poc" and technical impact as "total." The KEV listing now supersedes that exploitation status. According to the CVSS vector, successful exploitation could have a high impact on confidentiality, integrity, and availability on the affected host. CISA lists known ransomware campaign use as "Unknown."
The X41 D-Sec advisory referenced by NVD is tagged as including exploit and mitigation information.
What's Vulnerable
- BerriAI LiteLLM: versions through 2026-04-08 (NVD CPE
cpe:2.3:a:litellm:litellm:*) - Red Hat Ansible Automation Platform 2.6:
lightspeed-chatbot-rhel9container, affected before build 1780102732 - Red Hat OpenShift AI 3.3:
odh-llama-stack-core-rhel9container, affected before build 1782310008 - Red Hat Lightspeed Core:
lightspeed-stackis listed as affected, and the data gives no fixed version
Red Hat lists the OpenShift AI odh-mlflow-rhel9 package as unaffected.
Patch Status
CISA's required action is to apply mitigations according to vendor instructions, following BOD 26-04 guidance and CISA's Forensics Triage Requirements. CISA also says to follow BOD 26-04 guidance for cloud services, or stop using the product if no mitigations are available. Organizations are responsible for evaluating each asset's internet exposure. The KEV due date is 2026-12-02.
The supplied data does not name a fixed upstream LiteLLM version. Check the BerriAI GitHub security advisory for vendor guidance. Red Hat has published errata RHSA-2026:24866 and RHSA-2026:30056 for affected products.
Sources
- CISA Known Exploited Vulnerabilities Catalog
- NVD: CVE-2026-40217
- CVE.org Record
- BerriAI LiteLLM Security Advisory GHSA-wxxx-gvqv-xp7p
- X41 D-Sec Advisory X41-2026-001
- CISA BOD 26-04
- CISA BOD 26-04 Implementation Guidance
- Red Hat CVE Page
- Red Hat RHSA-2026:24866
- Red Hat RHSA-2026:30056
- Red Hat Bugzilla 2457301
- Red Hat VEX Data