Skip to main content

Litellm EUVDEUVD-2026-21376

| CVE-2026-40217 HIGH
Unprotected Alternate Channel (CWE-420)
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to LiteLLM application
  2. Delivery
    Access /guardrails/test_custom_code endpoint
  3. Exploit
    Submit malicious bytecode payload
  4. Execution
    Rewrite and execute arbitrary code
  5. Impact
    Achieve remote code execution with full privileges

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V13 - Configuration Unprotected alternate channel
Exploitation Conditions

Authenticated user access required to LiteLLM through 2026-04-08. Attacker must have valid credentials to reach the /guardrails/test_custom_code endpoint and submit malicious bytecode for rewriting. No victim interaction needed. Remote network access.

Impact

CVSS 8.8 high severity RCE affecting authenticated LiteLLM users via bytecode rewriting at /guardrails/test_custom_code. Requires valid credentials but grants full system compromise (integrity, confidentiality, availability). Moderate observed exploitation activity increases urgency for patched deployments.

Exploit ScenarioDerived

Authenticated attacker submits malicious Python bytecode to /guardrails/test_custom_code endpoint. LiteLLM processes and executes bytecode without proper validation, achieving remote code execution on the server. No public exploit code identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 10, 2026

Remote code execution in BerriAI LiteLLM (all versions through 2026-04-08) enables authenticated attackers to execute arbitrary code by exploiting bytecode rewriting functionality at the /guardrails/test_custom_code endpoint. The vulnerability requires low-privilege authentication (PR:L) but permits complete system compromise with high impact to confidentiality, integrity, and availability. No public exploit identified at time of analysis.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. Immediate action required: Restrict network access to /guardrails/test_custom_code endpoint through web application firewall rules or reverse proxy configuration, limiting exposure to trusted administrative IP ranges only. If custom guardrails testing is not operationally required, disable the endpoint entirely via application configuration. Implement strict input validation and bytecode execution sandboxing if the feature must remain accessible. Monitor application logs for unauthorized access attempts to /guardrails/ paths. Consult vendor security advisory for official remediation guidance: https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm/

Affected VersionsENISA

LiteLLM bb0639701796218a3447160e55c0f1097446e4e6085df7dfd39f476d4143743f

Affected Packages

pypi litellm fix: 1.83.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Root cause stems from CWE-420 (Unprotected Alternate Channel) where the /guardrails/test_custom_code URI accepts user-controlled bytecode for rewriting without adequate sandboxing or validation. Authenticated users can submit malicious bytecode payloads that execute with application privileges, bypassing intended security boundaries in the guardrails testing interface.

Know when Litellm gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 8.8 HIGH

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 pypi packages depend on litellm (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 1.81.8.

Executive ViewAI

Why It Matters

BerriAI LiteLLM versions through April 8, 2026 contain a remote code execution vulnerability in its guardrails testing functionality that allows authenticated users to execute arbitrary code and compromise system confidentiality, integrity, and availability. Organizations deploying LiteLLM in production environments face immediate risk of unauthorized code execution by any user with application access, potentially leading to data exfiltration, service disruption, or lateral movement within the infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict /guardrails/test_custom_code endpoint to localhost or internal-only networks via network segmentation or WAF rules; (2) Disable the endpoint entirely if not critical to operations; (3) Implement strict role-based access controls limiting endpoint access to administrative users only; (4) Enable authentication logging and alerting for all requests to this endpoint; (5) Run LiteLLM in a sandboxed or containerized environment with restrictive process-level permissions to limit blast radius of code execution.

Threat Intelligence Overview

EPSS Score
0.2%
Top 59% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA POC (1) Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-42271 HIGH POC
8.7 May 08

Remote command execution in LiteLLM proxy server versions 1.74.2 through 1.83.6 allows any authenticated user to execute

CVE-2026-42208 CRITICAL POC
9.3 May 08

SQL injection in LiteLLM proxy server versions 1.81.16 through 1.83.6 allows unauthenticated remote attackers to read an

CVE-2026-59822 HIGH POC
8.8 Jul 08

Authentication bypass in LiteLLM (BerriAI) proxy/AI Gateway before 1.84.0 lets a remote unauthenticated attacker reach M

CVE-2024-2952 CRITICAL POC
9.8 Apr 10

BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. Rated critical s

CVE-2024-4888 HIGH POC
8.1 Jun 06

BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on t

CVE-2026-93355 HIGH POC
7.6 Sep 28

Authentication bypass in the LiteLLM proxy lets any party who already holds a valid JWT issued by the configured externa

CVE-2025-0330 HIGH POC
7.5 Mar 20

In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error oc

CVE-2024-9606 HIGH POC
7.5 Mar 20

In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerabi

CVE-2024-6587 HIGH POC
7.5 Sep 13

A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. Rated high severity (CVSS

CVE-2024-5225 HIGH POC
7.2 Jun 06

An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` en

CVE-2024-4889 HIGH POC
7.2 Jun 06

A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated

CVE-2024-5710 MEDIUM POC
6.5 Jun 27

berriai/litellm version 1.34.34 is vulnerable to improper access control in its team management functionality. Rated med

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy