INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2020-28975

scikit-learn Denial of Service

CVE-2020-28975 ยท 2022-05-24 high

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Denial of service
Affected
scikit-learn (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.6% chance of exploitation in 30 days

How it works, in short

A crafted serialized SVM model with a large support-vector count value causes libsvm to segfault during prediction. (Our summary, written by a model. The source text is below.)

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.