CVE-2020-28975: Scikit learn Denial of Service Vulnerability
HIGHCVE-2020-28975 is a HIGH (CVSS 7.5) denial of service vulnerability (General Security Weakness) affecting Scikit learn libraries in the PyPI ecosystem. The issue involves scikit-learn denial of service. Remediation is available by upgrading affected packages to version 1.0.1.
CVE-2020-28975 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2020-28975
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.0.1
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-2020-28975, 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.0.1), 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 General Security Weakness. 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-2020-28975 Affected Scikit learn Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
scikit-learn
|
PyPI |
≥ 0.23.2
< 1.0.1
|
1.0.1
|
References
Frequently Asked Questions
What is CVE-2020-28975?
Which Scikit learn versions are affected?
What version fixes CVE-2020-28975?
Is scikit-learn affected?
What is the CVSS score of CVE-2020-28975?
What CWE is associated with CVE-2020-28975?
How can I check PyPI dependencies for CVE-2020-28975?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jxfp-4rvq-9h9m",
"modified" : "2024-10-23T18:41:25Z",
"published" : "2022-05-24T17:34:40Z",
"aliases" : [ "CVE-2020-28975" ],
"summary" : "scikit-learn Denial of Service",
"details" : "svm_predict_values in svm.cpp in Libsvm v324, as used in scikit-learn 0.23.2 and other products, allows attackers to cause a denial of service (segmentation fault) via a crafted model SVM (introduced via pickle, json, or any other model permanence standard) with a large value in the _n_support array.\nNOTE: the scikit-learn vendor's position is that the behavior can only occur if the library's API is violated by an application that changes a private attribute.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "scikit-learn"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.23.2"
}, {
"fixed" : "1.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-28975"
}, {
"type" : "WEB",
"url" : "https://github.com/scikit-learn/scikit-learn/issues/18891"
}, {
"type" : "WEB",
"url" : "https://github.com/scikit-learn/scikit-learn/commit/1bf13d567d3cd74854aa8343fd25b61dd768bb85"
}, {
"type" : "WEB",
"url" : "https://github.com/cjlin1/libsvm/blob/9a3a9708926dec87d382c43b203f2ca19c2d56a0/svm.cpp#L2501"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/scikit-learn/PYSEC-2020-108.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/scikit-learn/scikit-learn"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202301-03"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/160281/SciKit-Learn-0.23.2-Denial-Of-Service.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2020/Nov/44"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-01T20:59:15Z",
"nvd_published_at" : "2020-11-21T21:15:00Z"
}
}