scikit-learn Denial of Service
Published 24 May 2022 · Updated 3 Dec 2024
Is your project on an affected scikit-learn?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=0.23.2 <1.0.1
- Fixed in
- 1.0.1
pip install 'scikit-learn>=1.0.1'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. NOTE: 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.
Is GHSA-jxfp-4rvq-9h9m in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected scikit-learn, and gives you the command that fixes it.
More advisories for scikit-learn
- MediumCVE-2024-5206scikit-learn sensitive data leakage vulnerability · 6 Jun 2024
- CriticalCVE-2020-13092scikit-learn Deserialization of Untrusted Data · 24 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-28975
- Linkgithub.com/scikit-learn/scikit-learn/issues/18891
- Linkgithub.com/scikit-learn/scikit-learn/commit/1bf13d567d3cd74854aa8343fd25b61dd768bb85
- Linkgithub.com/cjlin1/libsvm/blob/9a3a9708926dec87d382c43b203f2ca19c2d56a0/svm.cpp#L2501
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/scikit-learn/PYSEC-2020-108.yaml
- Packagegithub.com/scikit-learn/scikit-learn
- Linksecurity.gentoo.org/glsa/202301-03
- Linkpacketstormsecurity.com/files/160281/SciKit-Learn-0.23.2-Denial-Of-Service.html
- Linkseclists.org/fulldisclosure/2020/Nov/44
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.