Vulnerabilities in pkg:pypi/scikit-learn
PACKAGECVE-2024-5206 is a MODERATE (CVSS 5.3) scikit-learn sensitive data leakage vulnerability vulnerability (CWE-922: Insecure Storage of Sensitive Information) affecting Scikit learn libraries in the PyPI ecosystem. The issue involves scikit-learn sensitive data leakage vulnerability. Remediation is available by upgrading affected packages to version 1.5.0.
pkg:pypi/scikit-learn
Vulnerability advisories affecting package pkg:pypi/scikit-learn. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jw8x-6495-233v | CVE-2024-5206 | MODERATE | scikit-learn sensitive data leakage vulnerability |
| GHSA-jxfp-4rvq-9h9m | CVE-2020-28975 | HIGH | scikit-learn Denial of Service |
| GHSA-jjw5-xxj6-pcv5 | CVE-2020-13092 | CRITICAL | scikit-learn Deserialization of Untrusted Data |
CVE-2024-5206 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-5206
To remediate this vulnerability, upgrade all affected Scikit learn 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 scikit-learn>=1.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show scikit-learn
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-5206, inspect your installed packages using pip:
pip show scikit-learn
Analyze the terminal output to locate any version of Scikit learn in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), your application is affected.
Note: The pip show scikit-learn command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-922: Insecure Storage of Sensitive Information, where the product stores sensitive information without properly limiting read or write access by unauthorized actors. In Scikit learn, 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-5206 Affected Scikit learn Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
scikit-learn
|
PyPI |
< 1.5.0
|
1.5.0
|
References
Frequently Asked Questions
What is CVE-2024-5206?
Which Scikit learn versions are affected?
What version fixes CVE-2024-5206?
Is scikit-learn affected?
What is the CVSS score of CVE-2024-5206?
What CWE is associated with CVE-2024-5206?
How can I check PyPI dependencies for CVE-2024-5206?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jw8x-6495-233v",
"modified" : "2024-10-25T16:47:32Z",
"published" : "2024-06-06T21:30:37Z",
"aliases" : [ "CVE-2024-5206" ],
"summary" : "scikit-learn sensitive data leakage vulnerability",
"details" : "A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.post1, which was fixed in version 1.5.0. The vulnerability arises from the unexpected storage of all tokens present in the training data within the `stop_words_` attribute, rather than only storing the subset of tokens required for the TF-IDF technique to function. This behavior leads to the potential leakage of sensitive information, as the `stop_words_` attribute could contain tokens that were meant to be discarded and not stored, such as passwords or keys. The impact of this vulnerability varies based on the nature of the data being processed by the vectorizer.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "scikit-learn"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-5206"
}, {
"type" : "WEB",
"url" : "https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/scikit-learn/PYSEC-2024-110.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/scikit-learn/scikit-learn"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-921", "CWE-922" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-17T22:31:08Z",
"nvd_published_at" : "2024-06-06T19:16:06Z"
}
}