CVE-2026-40217LiteLLM code injection via guardrails test endpoint
CVSS score
8.8
High
CVSS 3.1 from mitre.org
Exploit probability (EPSS)
82.8%
82.8% chance of exploitation in the next 30 days, higher than 99.7% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 18 Nov 2026.
US federal deadline to fix: 2 Dec 2026.
In plain words
A remote attacker can run arbitrary code on servers running LiteLLM by sending crafted requests to the /guardrails/test_custom_code endpoint, without needing a login beyond a low-privilege account. Affected versions include LiteLLM 1.81.8 to before 1.83.10, plus several Red Hat products that bundle it. CISA lists this as actively exploited, and no vendor patch reference is given, so restrict access to the endpoint and follow CISA's BOD 26-04 guidance.
Official description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Source: NVD · CNA: cve@mitre.org
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 18 Nov 2026.
US federal agencies must fix it by 2 Dec 2026. It's a sensible deadline for everyone else too.
CISA's full instruction
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.
Check whether you're affected
Find every system running Litellm, Red Hat Ansible Automation Platform 2.6, Red Hat OpenShift AI 3.3, Red Hat Openshift Lightspeed, Red Hat Lightspeed Core and compare its version with the affected versions.
Update to a fixed version
- Update Litellm to 1.83.10 or later.
- Update Ansible Automation Platform to 2.6-9 or later.
- Update Openshift Ai to 3.3.4 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| litellm Litellm | ≥ 1.81.8, < 1.83.10 |
| Red Hat Ansible Automation Platform | ≥ 2.0, < 2.6-9 |
| Red Hat Openshift Ai | ≥ 3.3, < 3.3.4 |
| Red Hat Openshift Lightspeed | Not specified |
| BerriAI LiteLLM | bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f |
| Red Hat Red Hat Ansible Automation Platform 2.6 | Not specified |
| Red Hat Red Hat OpenShift AI 3.3 | Not specified |
| Red Hat Lightspeed Core | Not specified |
| Red Hat Red Hat OpenShift AI (RHOAI) | Not specified |
Frequently asked questions
Is CVE-2026-40217 being exploited?
Yes. CISA added CVE-2026-40217 to its Known Exploited Vulnerabilities catalog on 18 Nov 2026, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 82.8% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-40217?
CVE-2026-40217 has a CVSS 3.1 base score of 8.8 (high).
Which versions are affected?
Litellm Litellm (≥ 1.81.8, < 1.83.10), Red Hat Ansible Automation Platform (≥ 2.0, < 2.6-9), Red Hat Openshift Ai (≥ 3.3, < 3.3.4), Red Hat Openshift Lightspeed, Berriai LiteLLM (bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f), Red Hat Red Hat Ansible Automation Platform 2.6
Is there a patch for CVE-2026-40217?
The official record links to vendor advisories or patches; see “What to do” above.
References
- www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/(Exploit, Mitigation, Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:24866(Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:30056(Third Party Advisory)
- access.redhat.com/security/cve/CVE-2026-40217(Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi?id=2457301(Third Party Advisory)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json(Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.