Live threats

All CVEs / Scikit-learn

CVE-2020-28975Scikit-learn

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.6%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Nov 21, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Scikit-learn.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI scikit-learn ≥ 0.23.2 < 1.0.1 1.0.1 pip install "scikit-learn>=1.0.1"
PyPI scikit-learn < 0.24.dev0 0.24.dev0 pip install "scikit-learn>=0.24.dev0"

Per OSV / GitHub Advisories (GHSA-jxfp-4rvq-9h9m, PYSEC-2020-108). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
scikit-learnscikit-learn≥ 0.23.2 < 1.0.1

Official sources

References

Links published by the sources. Open them with care.