Advisory

GHSA-jxfp-4rvq-9h9m

Also known as: CVE-2020-28975, PYSEC-2020-108

Summary

scikit-learn Denial of Service

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-24 17:34 UTC
Modified
2024-12-03 06:16 UTC

Affected packages and fixes

scikit-learn

PyPI · All systems

Affected

  • introduced 0.23.2, fixed 1.0.1 (ecosystem)

Fixed versions

1.0.1

Fix

  • Fixed version 1.0.1
    pip install --upgrade scikit-learn==1.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences