CVE-2026-40217

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

Configuration 1 (hide)

cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*

Configuration 2 (hide)

OR cpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*

History

19 Nov 2026, 17:18

Type Values Removed Values Added
First Time Redhat
Redhat ansible Automation Platform
Redhat openshift Ai
Redhat openshift Lightspeed
CPE cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:*
References () https://access.redhat.com/errata/RHSA-2026:24866 - () https://access.redhat.com/errata/RHSA-2026:24866 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:30056 - () https://access.redhat.com/errata/RHSA-2026:30056 - Third Party Advisory
References () https://access.redhat.com/security/cve/CVE-2026-40217 - () https://access.redhat.com/security/cve/CVE-2026-40217 - Third Party Advisory
References () https://bugzilla.redhat.com/show_bug.cgi?id=2457301 - () https://bugzilla.redhat.com/show_bug.cgi?id=2457301 - Third Party Advisory
References () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json - () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json - Third Party Advisory
References () https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 - () https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 - US Government Resource

18 Nov 2026, 21:17

Type Values Removed Values Added
References
  • () https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-40217 -

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) LiteLLM hasta el 08-04-2026 permite a atacantes remotos ejecutar código arbitrario mediante la reescritura de bytecode en la URI /guardrails/test_custom_code.

30 Jun 2026, 03:19

Type Values Removed Values Added
CWE CWE-94
References
  • () https://access.redhat.com/errata/RHSA-2026:24866 -
  • () https://access.redhat.com/errata/RHSA-2026:30056 -
  • () https://access.redhat.com/security/cve/CVE-2026-40217 -
  • () https://bugzilla.redhat.com/show_bug.cgi?id=2457301 -
  • () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40217.json -

17 Jun 2026, 10:44

Type Values Removed Values Added
References () https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ - Third Party Advisory, Exploit, Mitigation () https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ - Exploit, Mitigation, Third Party Advisory

27 Apr 2026, 23:00

Type Values Removed Values Added
References () https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ - () https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/ - Third Party Advisory, Exploit, Mitigation
First Time Litellm litellm
Litellm
CPE cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*

10 Apr 2026, 14:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-10 14:16

Updated : 2026-11-19 17:18


NVD link : CVE-2026-40217

Mitre link : CVE-2026-40217

CVE.ORG link : CVE-2026-40217


JSON object : View

Products Affected

redhat

  • ansible_automation_platform
  • openshift_ai
  • openshift_lightspeed

litellm

  • litellm
CWE
CWE-420

Unprotected Alternate Channel

CWE-94

Improper Control of Generation of Code ('Code Injection')