Skip to content
Fencer Vulns
medium 4.7

CVE-2024-5206 json

Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn

published 2024-06-06 2 y ago modified 2026-09-10 1 mo ago also GHSA-jw8x-6495-233v , PYSEC-2024-110 , EUVD-2024-0161

cvss
4.7
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 8%
public exploits
0
none known

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.

Patch / fix

  • pypi scikit-learn 1.5.0
  • scikit-learn scikit-learn/scikit-learn 1.5.0
  • scikit-learn scikit-learn 1.5.0
  • python-scikit-learn SLE Module for Package Hub 15 SP6, SLE Module for Package Hub 15 SP5, openSUSE Leap 15.6 +1 more 0.23.2-150300.3.3.1

suse advisories SUSE-SU-2024:2029-1

  • python-scikit-learn openSUSE Tumbleweed 1.9.0-1.1
  • python-scikit-learn openSUSE Tumbleweed 1.5.0-1.1

opensuse advisories openSUSE-SU-2026:11498-1openSUSE-SU-2024:14043-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-5206 updated cvss 5.3

scikit-learn: Possible sensitive data leak

  • Red Hat Ceph Storage 7 arrow, pybind Red Hat Ceph Storage 8 pybind Red Hat Ceph Storage 9 arrow, pybind
    affected: no fix available
  • Red Hat Ceph Storage 7.1 rhceph/rhceph-7-rhel9 1791452477
    fixed: vendor fix RHSA-2026:83548
  • Red Hat Ansible Automation Platform 2 aap-cloud-metrics-collector-container, ansible-automation-platform-25/ee-minimal-rhel8, ansible-automation-platform-25/lightspeed-rhel8, ansible-automation-platform-24/de-supported-rhel8, ansible-automation-platform-24/ee-supported-rhel9, ansible-automation-platform-25/ansible-builder-rhel8, +4 more Red Hat Ceph Storage 7.1 rhceph/grafana-rhel9 1791450715, rhceph/keepalived-rhel9 1791453133, rhceph/snmp-notifier-rhel9 1791450035, rhceph/rhceph-haproxy-rhel9 1791452229, rhceph/rhceph-promtail-rhel9 1791451373 Red Hat Ceph Storage 8 arrow
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.19% chance of exploitation in the next 30 days, higher than 8% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.0 4.7 CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD 3.1 4.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub 3.0 5.3 CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 4.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi scikit-learn
<1.5.0
1.5.0

Affected products

  • scikit-learn scikit-learn/scikit-learn
  • scikit-learn scikit-learn

Classification

Weakness
  • CWE-921 Storage of Sensitive Data in a Mechanism without Access Control
  • CWE-922 Insecure Storage of Sensitive Information

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.