CVE-2020-28975
Scikit-learn vulnerability
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.
Affected products
Scikit-learn. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Scikit-learn runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/scikit-learn/scikit-learn/commit/1bf13d567d3cd74854aa8343fd25b61dd768bb85 · Patch
- packetstormsecurity.com/files/160281/SciKit-Learn-0.23.2-Denial-Of-Service.html · Exploit
- seclists.org/fulldisclosure/2020/Nov/44 · Third Party Advisory
- github.com/cjlin1/libsvm/blob/9a3a9708926dec87d382c43b203f2ca19c2d56a0/svm.cpp#L2501 · Exploit
- github.com/scikit-learn/scikit-learn/issues/18891 · Exploit
- security.gentoo.org/glsa/202301-03 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-28975
- github.com/pypa/advisory-database/tree/main/vulns/scikit-learn/PYSEC-2020-108.yaml
- nvd.nist.gov/vuln/detail/CVE-2020-28975
- cve.org/CVERecord?id=CVE-2020-28975
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.