# CVE-2024-5206: Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn

- Severity: Medium 4.7 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 9% of CVEs (2026-11-30)
- Published: 2024-06-06T18:28:14.267Z
- Modified: 2026-09-10T03:50:15.628Z
- Also known as: GHSA-jw8x-6495-233v, PYSEC-2024-110
- Weaknesses: CWE-921, CWE-922
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- scikit-learn scikit-learn/scikit-learn: from unspecified before 1.5.0
- scikit-learn scikit-learn: before 1.5.0
- scikit-learn (PyPI): before 1.5.0; before 70ca21f106b603b611da73012c9ade7cd8e438b8

## Every score

- @huntr_ai: CVSS:3.0 4.7 Medium `CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c> (third-party-advisory, web)
- <https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5206> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/scikit-learn/PYSEC-2024-110.yaml> (web)
- <https://github.com/scikit-learn/scikit-learn> (package)
- <https://github.com/advisories/GHSA-jw8x-6495-233v> (advisory)

## Sources

- CVE List: [CVE-2024-5206](https://www.cve.org/CVERecord?id=CVE-2024-5206), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-jw8x-6495-233v](https://github.com/advisories/GHSA-jw8x-6495-233v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-5206](https://nvd.nist.gov/vuln/detail/CVE-2024-5206), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-110](https://osv.dev/vulnerability/PYSEC-2024-110), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-5206 · Whole record: https://cve.day/CVE-2024-5206.json · Rebuilt by cve.day 2026-11-25T22:58:41.522Z
