LiteLLM 1.81.8 < 1.83.10 Sandbox Escape

high Web App Scanning Plugin ID 115879

Synopsis

LiteLLM 1.81.8 < 1.83.10 Sandbox Escape

Description

According to its self-reported version, the instance of LiteLLM running on the remote web server is 1.81.8 prior to 1.83.10. It is, therefore, affected by a sandbox escape vulnerability in the custom-code guardrail. The POST /guardrails/test_custom_code endpoint runs user-supplied Python inside a hand-rolled sandbox that can be escaped using bytecode-level techniques, allowing an authenticated proxy-admin attacker to execute arbitrary code in the proxy process (CVE-2026-40217).

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to LiteLLM version 1.83.10 or later.

See Also

https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable

https://github.com/BerriAI/litellm/security/advisories/GHSA-wxxx-gvqv-xp7p

https://github.com/advisories/GHSA-wxxx-gvqv-xp7p

https://www.x41-dsec.de/lab/advisories/x41-2026-001-litellm

Plugin Details

Severity: High

ID: 115879

Type: Version Based

Published: 11/30/2026

Updated: 11/30/2026

Scan Template: api, basic, full, pci, quick, scan

Risk Information

VPR

Risk Factor: Critical

Score: 9.2

Percentile: 99.78

CVSS v2

Risk Factor: High

Base Score: 9

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-40217

CVSS v3

Risk Factor: High

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS Score Source: CVE-2026-40217

CVSS v4

Risk Factor: High

Base Score: 7.5

Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS Score Source: CVE-2026-40217

Vulnerability Information

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

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 4/9/2026

CISA Known Exploited Vulnerability Due Dates: 12/2/2026

Reference Information

CVE: CVE-2026-40217