# CVE-2020-28975: scikit-learn Denial of Service

Source: https://junglewise.ai/threats/cve-2020-28975-scikit-learn-denial-of-service  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-11-21  
License: CC BY 4.0 with a link back

CVE-2020-28975 · Severity: low · CVSS 3.1 · Published 2020-11-21

** DISPUTED ** 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.

Technologies: [scikit-learn (PyPI)](https://junglewise.ai/threats/technologies/scikit-learn). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2020-28975 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-28975 being exploited in the wild.

**How severe is CVE-2020-28975?** Low severity, with a CVSS score of 3.1, published 21 November 2020.

**Which products and versions are affected?** scikit-learn (PyPI) ECOSYSTEM:introduced=0,fixed=0.24.dev0, ECOSYSTEM:introduced=0.23.2,fixed=1.0.1.

**Is there a fix for CVE-2020-28975?** Yes. scikit-learn (PyPI): upgrade to 0.24.dev0, 1.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-28975?** Check whether you run scikit-learn (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- scikit-learn (PyPI): upgrade to 0.24.dev0, 1.0.1 or later

  ```sh
  pip install "scikit-learn>=1.0.1"
  ```


## Affected products

- scikit-learn (PyPI) ECOSYSTEM:introduced=0,fixed=0.24.dev0, ECOSYSTEM:introduced=0.23.2,fixed=1.0.1

## Identifiers

- CVE-2020-28975
- GHSA-jxfp-4rvq-9h9m
- PYSEC-2020-108

## Related threats

- [PYSEC-2024-110 - A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.](https://junglewise.ai/threats/cve-2024-5206-scikit-learn-sensitive-data-leakage-vulnerability)
- [scikit-learn Deserialization of Untrusted Data](https://junglewise.ai/threats/cve-2020-13092-scikit-learn-deserialization-of-untrusted-data)
