HighGHSA-jxfp-4rvq-9h9mCVE-2020-28975PYSEC-2020-108

scikit-learn Denial of Service

Published 24 May 2022 · Updated 3 Dec 2024

Is your project on an affected scikit-learn?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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
Update to the fixed version for your release line, for example: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
scikit-learn security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.