Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-28975
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:11 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-28975
Complete source record
{
"id": "3a4621f1756dd024092cbf4b64aab7c14a2a8b769a159850140d3ff93305e2ea",
"url": "https://osv.dev/vulnerability/CVE-2020-28975",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-28975",
"summary": "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.",
"evidence": "osv:CVE-2020-28975",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-28975",
"aliases": [
"CVE-2020-28975",
"GHSA-jxfp-4rvq-9h9m",
"PYSEC-2020-108"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/scikit-learn/scikit-learn",
"type": "GIT",
"events": [
{
"introduced": "0fb307bf39bbdacd6ed713c00724f8f871d60370"
},
{
"fixed": "0d378913be6d7e485b792ea36e9268be31ed52d0"
},
{
"fixed": "1bf13d567d3cd74854aa8343fd25b61dd768bb85"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:scikit-learn:scikit-learn:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.23.2"
},
{
"fixed": "1.0.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1bf13d567d3cd74854aa8343fd25b61dd768bb85"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-28975.json"
}
}
],
"modified": "2026-10-20T10:53:12.731115213Z",
"provider": "osv",
"references": [
"https://security.gentoo.org/glsa/202301-03",
"https://github.com/scikit-learn/scikit-learn/issues/18891",
"https://github.com/scikit-learn/scikit-learn/commit/1bf13d567d3cd74854aa8343fd25b61dd768bb85",
"https://github.com/cjlin1/libsvm/blob/9a3a9708926dec87d382c43b203f2ca19c2d56a0/svm.cpp#L2501"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-28975",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384227,
"published_at": "2020-11-21T21:15:10.68+00:00"
}