CVE-2024-5206: Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn
Vulnerability summary
CVE-2024-5206 is a medium (CVSS 4.7) vulnerability in scikit-learn. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.8% of scored vulnerabilities.
Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 4Timeline
- 06-06-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated4.7MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated4.7MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST4.7MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.19%
Chance of exploitation in the next 30 days
Percentile
9%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.19% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-921Storage of Sensitive Data in a Mechanism without Access ControlThe product stores sensitive information in a file system or device that does not have built-in access control.
- CWE-922Insecure Storage of Sensitive InformationThe product stores sensitive information without properly limiting read or write access by unauthorized actors.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard3 products
- kubeflow-katib< 0.16.0-r12
- kubeflow-pipelines-visualization-server< 2.3.0-r1
- py3-scikit-learn< 1.5.0-r0
Opensuse3 products
- python-scikit-learn&distro=openSUSE Leap 15.5< 0.23.2-150300.3.3.1
- python-scikit-learn&distro=openSUSE Leap 15.6< 0.23.2-150300.3.3.1
- python-scikit-learn&distro=openSUSE Tumbleweed< 1.5.0-1.1 | < 1.9.0-1.1
Wolfi3 products
- kubeflow-katib< 0.16.0-r12
- kubeflow-pipelines-visualization-server< 2.3.0-r1
- py3-scikit-learn< 1.5.0-r0
Scikit-learn2 products
- scikit-learn< 1.5.0
- scikit-learn/scikit-learn≥ unspecified, < 1.5.0
Suse2 products
- python-scikit-learn&distro=SUSE Linux Enterprise Module for Package Hub 15 SP5< 0.23.2-150300.3.3.1
- python-scikit-learn&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6< 0.23.2-150300.3.3.1
Debian1 product
- scikit-learnAll versions (No fix recorded)
Mageia1 product
- python-scikit-learn< 1.1.2-2.1.mga9
PyPI1 product
- scikit-learn< 70ca21f106b603b611da73012c9ade7cd8e438b8 | < 1.5.0
Ubuntu1 product
- scikit-learnAll versions (No fix recorded)
9 vendors · 17 products