CVE-2026-40217

LiteLLM: LiteLLM: Arbitrary Code Execution via bytecode rewriting

Published Apr 10, 2026 CVSS 3.1 · 8.8 High EPSS 78.0% KEV · Listed
Description
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wxxx-gvqv-xp7p LiteLLM has a sandbox escape in custom-code guardrail
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'active', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat
Redhat ansible Automation Platform
Redhat openshift Ai
Redhat openshift Lightspeed
CPEs cpe:2.3:a:redhat:ansible_automation_platform:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*
Vendors & Products Redhat
Redhat ansible Automation Platform
Redhat openshift Ai
Redhat openshift Lightspeed
Type Values Removed Values Added
Metrics kev

{'dateAdded': '2026-11-18T00:00:00+00:00', 'dueDate': '2026-12-02T00:00:00+00:00'}

Type Values Removed Values Added
First Time appeared Litellm
Litellm litellm
CPEs cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*
Vendors & Products Litellm
Litellm litellm
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Remote Code Execution via Bytecode Rewriting on /guardrails/test_custom_code in LiteLLM LiteLLM: LiteLLM: Arbitrary Code Execution via bytecode rewriting
Weaknesses CWE-94
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Title Remote Code Execution via Bytecode Rewriting on /guardrails/test_custom_code in LiteLLM
Type Values Removed Values Added
First Time appeared Berriai
Berriai litellm
Vendors & Products Berriai
Berriai litellm
Type Values Removed Values Added
Description LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
Weaknesses CWE-420
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 19, 2026, 4:45 PM
Reserved
Apr 10, 2026, 1:43 PM
Status
Analyzed
Published
Apr 10, 2026, 2:16 PM
Modified
Nov 19, 2026, 5:18 PM
Severity
Important
Public date
Apr 10, 2026, 1:43 PM