Lucene search
+L

LightGBM < 4.6.0 RCE

🗓️ 21 Nov 2024 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 13 Views

LightGBM versions below 4.6.0 are vulnerable to remote code execution; upgrade is required.

Related
Refs
Code
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(211682);
  script_version("1.3");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/06/01");

  script_cve_id("CVE-2024-43598");

  script_name(english:"LightGBM < 4.6.0 RCE");

  script_set_attribute(attribute:"synopsis", value:
"The LightGBM library installed on the remote host is affected by a remote code execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of the LightGBM library installed on the remote host is prior to 4.6.0. It is, therefore,
affected by a remote code execution vulnerability.

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://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43598");
  script_set_attribute(attribute:"solution", value:
"Upgrade to LightGBM version 4.6.0 or later.");
  script_set_attribute(attribute:"agent", value:"all");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2024-43598");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2024/11/12");
  script_set_attribute(attribute:"patch_publication_date", value:"2024/11/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2024/11/21");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:lightgbm");
  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) 2024-2026 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("unix_enum_sw.nasl", "os_fingerprint.nasl", "python_packages_installed_nix.nbin", "python_packages_win_installed.nbin", "nuget_package_enumeration_win_installed.nbin", "nuget_package_enumeration_nix_installed.nbin");
  script_require_ports("Python/Packages/Enumerated", "NuGet/Packages/Enumerated");

  exit(0);
}

include('nuget.inc');
include('python.inc');

var package_name = 'LightGBM';
var installs = [];
var extra_no_report, extra, extra_info;

# Check for NuGet Package Installs
if (!empty_or_null(get_kb_item("NuGet/Packages/Enumerated")))
{
  var nuget_app_info, nuget_pkg_found, nuget_package_info;

  nuget_app_info = nuget::query_nuget_packages(pkg_name:package_name);
  if (!empty_or_null(nuget_app_info))
  {
    foreach (nuget_pkg_found in nuget_app_info)
    {
      extra_no_report = {};
      extra = {};

      nuget_package_info = {
        'app' : package_name,
        'version' : nuget_pkg_found.version,
        'display_version' : nuget_pkg_found.version,
        'parsed_version' : vcf::parse_version(nuget_pkg_found.version),
        'path' : nuget_pkg_found.subpath
      };

      extra_info = nuget::get_extra_from_association(assoc_str:nuget_pkg_found.association);

      if (!empty_or_null(extra_info))
      {
        extra = extra_info[0];
        extra_no_report = extra_info[1];
      }

      # Promote managed status to top level for vcf::check_all_backporting compatibility
      if (!empty_or_null(extra_no_report['Managed']))
        nuget_package_info['Managed'] = extra_no_report['Managed'];
      if (!empty_or_null(extra['Managed by OS']))
        nuget_package_info['Managed by OS'] = extra['Managed by OS'];
      
      nuget_package_info['Component'] = extra_no_report['Component'];
      
      append_element(var:installs, value:nuget_package_info);
    }
  }
}

# Check for Python Package Installs
if (!empty_or_null(get_kb_item("Python/Packages/Enumerated")))
{
  var os, python_packages_found, python_package_found, python_app_info;

  if (!empty_or_null(get_kb_item("Host/win/Python/Packages/Enumerated")))
    os = 'win';
  else
    os = 'nix';

  python_packages_found = python::query_python_package(os:os, pkg_name:package_name);
  if (!empty_or_null(python_packages_found))
  {
    foreach (python_package_found in python_packages_found)
    {
      extra_no_report = {};
      extra = {};

      python_app_info = {
        'app' : package_name,
        'version' : python_package_found.version,
        'display_version' : python_package_found.version,
        'parsed_version' : vcf::parse_version(python_package_found.version),
        'path' : python_package_found.path
      };

      extra_info = python::get_extra_from_association(assoc_str:python_package_found.association);

      if (!empty_or_null(extra_info))
      {
        extra = extra_info[0];
        extra_no_report = extra_info[1];
      }

      # Promote managed status to top level for vcf::check_all_backporting compatibility
      if (!empty_or_null(extra_no_report['Managed']))
        python_app_info['Managed'] = extra_no_report['Managed'];
      if (!empty_or_null(extra['Managed by OS']))
        python_app_info['Managed by OS'] = extra['Managed by OS'];
      
      python_app_info['Component'] = extra_no_report['Component'];

      append_element(var:installs, value:python_app_info);
    }
  }
}

if (empty_or_null(installs))
  audit(AUDIT_NOT_DETECT, package_name);

var app_info = branch(installs);

vcf::check_all_backporting(app_info:app_info);

var constraints = [
  {'fixed_version': '4.6.0'}
];

vcf::check_version_and_report(
    app_info:app_info,
    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

01 Jun 2026 00:00Current
6.4Medium risk
Vulners AI Score6.4
CVSS 3.18.1
EPSS0.01384
SSVC
13