LiteLLM 1.81.8 < 1.83.10 Arbitrary Code Execution (GHSA-wxxx-gvqv-xp7p)

high Nessus Plugin ID 388783

Synopsis

The remote host has a vulnerable version of LiteLLM installed.

Description

The version of the LiteLLM Python package installed on the remote host is 1.81.8 prior to 1.83.10. It is, therefore, affected by a vulnerability:

- The POST /guardrails/test_custom_code endpoint runs user-supplied Python inside a hand-rolled sandbox. The sandbox can be escaped using bytecode-level techniques, allowing arbitrary code execution in the proxy process — which runs as root in the default Docker image. (CVE-2026-40217)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade LiteLLM to version 1.83.10, or later.

See Also

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

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

Plugin Details

Severity: High

ID: 388783

File Name: litellm_CVE-2026-40217.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Published: 11/30/2026

Updated: 11/30/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

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

Vulnerability Information

CPE: cpe:/a:litellm:litellm

Patch Publication Date: 4/27/2026

Vulnerability Publication Date: 5/6/2026

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

Reference Information

CVE: CVE-2026-40217