CVE-2024-5206: scikit-learn - Information Disclosure
- Cve: CVE-2024-5206
- Name: scikit-learn - Information Disclosure
- 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.
- Impact: Potential leakage of sensitive information such as passwords or keys from the stop_words_ attribute.
- Remediation: Update to version 1.5.0 or later.
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.7
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00189
- Epss percentile: 0.08451
- Assignee: [email protected]
- Published at: 2024-06-06T19:16:06Z
- Age in days: 901
- Modified at: 2026-06-17T08:15:24Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-5206
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-921 | Storage of Sensitive Data in a Mechanism without Access Control |
| CWE-922 | Insecure Storage of Sensitive Information |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8 | nvd | Patch |
| https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| scikit-learn:scikit-learn | < 1.5.0 | no | nvd | /v1/products/scikit-learn/scikit-learn |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| scikit-learn/scikit-learn | commit, package | yes | /v1/repositories/scikit-learn/scikit-learn |
Index
- Repositories: 1578
- Repositories high signal: 805
- Packages: 1
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts