Lucene search
+L

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

🗓️ 30 Nov 2026 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 1 Views

Arbitrary code execution in LiteLLM via the /guardrails/test_custom_code endpoint.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for Unprotected Alternate Channel in Litellm
19 May 202613:19
–githubexploit
githubexploit
GithubExploit
Exploit for Unprotected Alternate Channel in Litellm
24 Nov 202600:22
–githubexploit
bdu_fstec
BDU FSTEC
LiteLLM proxy server Code Execution
24 Jun 202600:00
–bdu_fstec
cgr
Chainguard
CVE-2026-40217 vulnerabilities
24 Jun 202620:17
–cgr
circl
Circl
CVE-2026-40217
10 Apr 202615:17
–circl
cisa_kev
CISA KEV Catalog
BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
18 Nov 202600:00
–cisa_kev
cisa
CISA
CISA Adds Four Known Exploited Vulnerabilities to Catalog
18 Nov 202612:00
–cisa
cnnvd
CNNVD
LiteLLM security vulnerabilities
10 Apr 202600:00
–cnnvd
cve
CVE
CVE-2026-40217
10 Apr 202613:43
–cve
cvelist
Cvelist
CVE-2026-40217
10 Apr 202613:43
–cvelist
Rows per page
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(388783);
  script_version("1.1");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/11/30");

  script_cve_id("CVE-2026-40217");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2026/12/02");

  script_name(english:"LiteLLM 1.81.8 < 1.83.10 Arbitrary Code Execution (GHSA-wxxx-gvqv-xp7p)");

  script_set_attribute(attribute:"synopsis", value:
"The remote host has a vulnerable version of LiteLLM installed.");
  script_set_attribute(attribute:"description", value:
"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.");
  script_set_attribute(attribute:"see_also", value:"https://github.com/advisories/GHSA-wxxx-gvqv-xp7p");
  script_set_attribute(attribute:"see_also", value:"https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable");
  script_set_attribute(attribute:"solution", value:
"Upgrade LiteLLM to version 1.83.10, or later.");
  script_set_attribute(attribute:"agent", value:"all");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2026-40217");

  script_set_attribute(attribute:"vuln_publication_date", value:"2026/05/06");
  script_set_attribute(attribute:"patch_publication_date", value:"2026/04/27");
  script_set_attribute(attribute:"plugin_publication_date", value:"2026/11/30");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"asset_categories", value:"component");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:litellm:litellm");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Artificial Intelligence");

  script_copyright(english:"This script is Copyright (C) 2026 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("python_litellm_detect.nasl");
  script_require_ports("installed_sw/LiteLLM");

  exit(0);
}

include('python.inc');

var pkg = 'LiteLLM';
var cpe = 'cpe:/a:litellm:litellm';

var libs = python::get_package_info(pkg_name:pkg, cpe:cpe);

if (empty_or_null(libs))
  audit(AUDIT_NOT_INST, pkg);

vcf::check_all_backporting(app_info:libs);

var constraints = [
  { 'min_version' : '1.81.8', 'fixed_version' : '1.83.10' }
];

vcf::check_version_and_report(app_info:libs, constraints:constraints, severity:SECURITY_HOLE);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation