Vulnerabilities in pkg:pypi/lightgbm
PACKAGECVE-2024-43598 is a HIGH (CVSS 8.1) remote code execution vulnerability (CWE-122: Heap-based Buffer Overflow) affecting Lightgbm libraries in the PyPI ecosystem. The issue involves lightgbm remote code execution vulnerability. Remediation is available by upgrading affected packages to version 4.6.0.
pkg:pypi/lightgbm
Vulnerability advisories affecting package pkg:pypi/lightgbm. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2586-f3p4-hq84 | CVE-2024-43598 | HIGH | LightGBM Remote Code Execution Vulnerability |
CVE-2024-43598 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C).
How to Fix CVE-2024-43598
To remediate this vulnerability, upgrade all affected Lightgbm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install lightgbm>=4.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show lightgbm
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-43598, inspect your installed packages using pip:
pip show lightgbm
Analyze the terminal output to locate any version of Lightgbm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.0), your application is affected.
Note: The pip show lightgbm command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-122: Heap-based Buffer Overflow, where a heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). In Lightgbm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-43598 Affected Lightgbm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lightgbm
|
PyPI |
≥ 1.0.0
< 4.6.0
|
4.6.0
|
References
Frequently Asked Questions
What is CVE-2024-43598?
Which Lightgbm versions are affected?
What version fixes CVE-2024-43598?
Is lightgbm affected?
What is the CVSS score of CVE-2024-43598?
What CWE is associated with CVE-2024-43598?
How can I check PyPI dependencies for CVE-2024-43598?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2586-f3p4-hq84",
"modified" : "2025-02-18T19:25:51Z",
"published" : "2024-11-12T18:30:58Z",
"aliases" : [ "CVE-2024-43598" ],
"summary" : "LightGBM Remote Code Execution Vulnerability",
"details" : "LightGBM Remote Code Execution Vulnerability",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lightgbm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "4.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43598"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/microsoft/LightGBM"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/lightgbm/PYSEC-2024-231.yaml"
}, {
"type" : "WEB",
"url" : "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43598"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-122" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-18T19:25:51Z",
"nvd_published_at" : "2024-11-12T18:15:28Z"
}
}