scikit-learn — security advisory
A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.post1, which was fixed in version 1.5.0. The vulnerability arises from the unexpected storage of all tokens present in the training data within the `stop_words_` attribute, rather than only storing the subset of tokens required for the TF-IDF technique to function. This behavior leads to the potential leakage of sensitive information, as the `stop_words_` attribute could contain tokens that were meant to be discarded and not stored, such as passwords or keys. The impact of this vulnerability varies based on the nature of the data being processed by the vectorizer.
- Products
- scikit-learn
- Affected versions
- 0.13.1-1, 0.14.1-1, 0.14.1-2, 0.16.1-2, 0.17.0-4, 0.19.0-1build1, 0.19.1-1, 0.19.1-2, 0.19.1-3, 0.20.3+dfsg-0ubuntu2, 0.20.3+dfsg-0ubuntu3, 0.22.2.post1+dfsg-5, 0.23.2-5ubuntu2, 0.23.2-5ubuntu4, 0.23.2-5ubuntu6, 1.2.1+dfsg-1build1, 1.2.1+dfsg-1build2, 1.4.1.post1+dfsg-1, 1.4.1.post1+dfsg-1build1, 1.4.2+dfsg-8, 1.7.2+dfsg-3ubuntu1, 1.7.2+dfsg-4, 1.7.2+dfsg-4build1, 1.9.0+dfsg-1
- Fixed versions
- Not specified
- CVEs
- CVE-2024-5206
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:24 UTC · Revision 1
Source evidence
A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.post1, which was fixed in version 1.5.0. The vulnerability arises from the unexpected storage of all tokens present in the training data within the `stop_words_` attribute, rather than only storing the subset of tokens required for the TF-IDF technique to function. This behavior leads to the potential leakage of sensitive information, as the `stop_words_` attribute could contain tokens that were meant to be discarded and not stored, such as passwords or keys. The impact of this vulnerability varies based on the nature of the data being processed by the vectorizer.
osv:UBUNTU-CVE-2024-5206
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
scikit-learn
Fixed versions: Not specified
Complete source record
{
"id": "d4f6da9792b768c355988b0af332b8e0c0542da6b0b59149f4616e3c35acd071",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-5206",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-5206",
"summary": "A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.post1, which was fixed in version 1.5.0. The vulnerability arises from the unexpected storage of all tokens present in the training data within the `stop_words_` attribute, rather than only storing the subset of tokens required for the TF-IDF technique to function. This behavior leads to the potential leakage of sensitive information, as the `stop_words_` attribute could contain tokens that were meant to be discarded and not stored, such as passwords or keys. The impact of this vulnerability varies based on the nature of the data being processed by the vectorizer.",
"evidence": "osv:UBUNTU-CVE-2024-5206",
"products": [
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.13.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.14.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.14.1-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.16.1-2",
"evidence": "/affected/1/versions"
},
{
"value": "0.17.0-4",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.19.0-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "0.19.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.19.1-2",
"evidence": "/affected/2/versions"
},
{
"value": "0.19.1-3",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.20.3+dfsg-0ubuntu2",
"evidence": "/affected/3/versions"
},
{
"value": "0.20.3+dfsg-0ubuntu3",
"evidence": "/affected/3/versions"
},
{
"value": "0.22.2.post1+dfsg-5",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.23.2-5ubuntu2",
"evidence": "/affected/4/versions"
},
{
"value": "0.23.2-5ubuntu4",
"evidence": "/affected/4/versions"
},
{
"value": "0.23.2-5ubuntu6",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.1+dfsg-1build1",
"evidence": "/affected/5/versions"
},
{
"value": "1.2.1+dfsg-1build2",
"evidence": "/affected/5/versions"
},
{
"value": "1.4.1.post1+dfsg-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.4.1.post1+dfsg-1build1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.2+dfsg-8",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.7.2+dfsg-4build1",
"evidence": "/affected/7/versions"
},
{
"value": "1.9.0+dfsg-1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "scikit-learn",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.2+dfsg-8",
"evidence": "/affected/8/versions"
},
{
"value": "1.7.2+dfsg-3ubuntu1",
"evidence": "/affected/8/versions"
},
{
"value": "1.7.2+dfsg-4",
"evidence": "/affected/8/versions"
},
{
"value": "1.7.2+dfsg-4build1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2024-5206",
"aliases": [
"UBUNTU-CVE-2024-5206"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=trusty",
"ecosystem": "Ubuntu:14.04:LTS"
},
"versions": [
"0.13.1-1",
"0.14.1-1",
"0.14.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-scikits-learn",
"binary_version": "0.14.1-2"
},
{
"binary_name": "python-sklearn",
"binary_version": "0.14.1-2"
},
{
"binary_name": "python-sklearn-lib",
"binary_version": "0.14.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.16.1-2",
"0.17.0-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-scikits-learn",
"binary_version": "0.17.0-4"
},
{
"binary_name": "python-sklearn",
"binary_version": "0.17.0-4"
},
{
"binary_name": "python-sklearn-lib",
"binary_version": "0.17.0-4"
},
{
"binary_name": "python3-sklearn",
"binary_version": "0.17.0-4"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "0.17.0-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.19.0-1build1",
"0.19.1-1",
"0.19.1-2",
"0.19.1-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-scikits-learn",
"binary_version": "0.19.1-3"
},
{
"binary_name": "python-sklearn",
"binary_version": "0.19.1-3"
},
{
"binary_name": "python-sklearn-lib",
"binary_version": "0.19.1-3"
},
{
"binary_name": "python3-sklearn",
"binary_version": "0.19.1-3"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "0.19.1-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.20.3+dfsg-0ubuntu2",
"0.20.3+dfsg-0ubuntu3",
"0.22.2.post1+dfsg-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-sklearn",
"binary_version": "0.22.2.post1+dfsg-5"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "0.22.2.post1+dfsg-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.23.2-5ubuntu2",
"0.23.2-5ubuntu4",
"0.23.2-5ubuntu6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-sklearn",
"binary_version": "0.23.2-5ubuntu6"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "0.23.2-5ubuntu6"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.2.1+dfsg-1build1",
"1.2.1+dfsg-1build2",
"1.4.1.post1+dfsg-1",
"1.4.1.post1+dfsg-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-sklearn",
"binary_version": "1.4.1.post1+dfsg-1build1"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "1.4.1.post1+dfsg-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.4.2+dfsg-8"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-sklearn",
"binary_version": "1.4.2+dfsg-8"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "1.4.2+dfsg-8"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.7.2+dfsg-4build1",
"1.9.0+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-sklearn",
"binary_version": "1.9.0+dfsg-1"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "1.9.0+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "scikit-learn",
"purl": "pkg:deb/ubuntu/scikit-learn?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.4.2+dfsg-8",
"1.7.2+dfsg-3ubuntu1",
"1.7.2+dfsg-4",
"1.7.2+dfsg-4build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-5206.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-sklearn",
"binary_version": "1.7.2+dfsg-4build1"
},
{
"binary_name": "python3-sklearn-lib",
"binary_version": "1.7.2+dfsg-4build1"
}
]
}
}
],
"modified": "2026-10-17T12:54:35.001453197Z",
"provider": "osv",
"upstream": [
"CVE-2024-5206"
],
"references": [
"https://ubuntu.com/security/CVE-2024-5206",
"https://www.cve.org/CVERecord?id=CVE-2024-5206",
"https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c",
"https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8"
]
},
"related_cves": [
{
"value": "CVE-2024-5206",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 353528,
"published_at": "2024-06-06T19:16:00+00:00"
}