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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-06-06 · Modified: 2024-08-01
- Aliases: MGASA-2024-0228, SUSE-SU-2024:2029-1, GHSA-jw8x-6495-233v, PYSEC-2024-110, UBUNTU-CVE-2024-5206, DEBIAN-CVE-2024-5206, CGA-98hm-5hxx-mmh9, CGA-cfmc-qf73-rc3m, CGA-hcmx-xjrm-p9r6, CGA-vxph-vx97-5j7q, CGA-xf8m-5m7r-6v47, openSUSE-SU-2024:14043-1, openSUSE-SU-2026:11498-1
- Record: https://cvemate.com/vulnerability/CVE-2024-5206 · JSON: https://cvemate.com/vulnerability/CVE-2024-5206/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.0, CVE.org) CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.189%, percentile 8.855%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard kubeflow-katib (Chainguard): \< 0.16.0-r12
- chainguard kubeflow-pipelines-visualization-server (Chainguard): \< 2.3.0-r1
- chainguard py3-scikit-learn (Chainguard): \< 1.5.0-r0
- wolfi kubeflow-katib (Wolfi): \< 0.16.0-r12
- wolfi kubeflow-pipelines-visualization-server (Wolfi): \< 2.3.0-r1
- wolfi py3-scikit-learn (Wolfi): \< 1.5.0-r0
- debian scikit-learn (Debian): All versions (No fix recorded)
- ubuntu scikit-learn (Ubuntu): All versions (No fix recorded)
- mageia python-scikit-learn (Mageia): \< 1.1.2-2.1.mga9
- PyPI scikit-learn (PyPI): \< 70ca21f106b603b611da73012c9ade7cd8e438b8 \| \< 1.5.0
- opensuse python-scikit-learn&distro=openSUSE Leap 15.5 (openSUSE): \< 0.23.2-150300.3.3.1
- opensuse python-scikit-learn&distro=openSUSE Leap 15.6 (openSUSE): \< 0.23.2-150300.3.3.1
- opensuse python-scikit-learn&distro=openSUSE Tumbleweed (openSUSE): \< 1.5.0-1.1 \| \< 1.9.0-1.1
- suse python-scikit-learn&distro=SUSE Linux Enterprise Module for Package Hub 15 SP5 (SUSE Linux Enterprise): \< 0.23.2-150300.3.3.1
- suse python-scikit-learn&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6 (SUSE Linux Enterprise): \< 0.23.2-150300.3.3.1
- scikit-learn scikit-learn: \< 1.5.0
- scikit-learn scikit-learn/scikit-learn: ≥ unspecified, \< 1.5.0

## References

- <https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c>
- <https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8>
- <https://advisories.mageia.org/MGASA-2024-0228.html>
- <https://bugs.mageia.org/show_bug.cgi?id=33307>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/message/RRNRD64XAZJHFLB6MHKCGUBBVTIA3E7V/>
- <https://www.suse.com/support/update/announcement/2024/suse-su-20242029-1/>
- <https://bugzilla.suse.com/1226185>
- <https://www.suse.com/security/cve/CVE-2024-5206>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5206>
- <https://github.com/pypa/advisory-database/tree/main/vulns/scikit-learn/PYSEC-2024-110.yaml>
- <https://github.com/scikit-learn/scikit-learn>
- <https://github.com/advisories/GHSA-jw8x-6495-233v>
- <https://ubuntu.com/security/CVE-2024-5206>
- <https://www.cve.org/CVERecord?id=CVE-2024-5206>
- <https://security-tracker.debian.org/tracker/CVE-2024-5206>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5206.json>

---

Data as of 2026-12-05T07:32:47.343Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
