CVEfocus › CVE database › CVE-2024-5206

CVE-2024-5206Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in…

CVSS 4.7 MediumEPSS 0.2% (higher than 9% of CVEs)Published 2024-06-06Updated 2024-08-01Assigner: @huntr_ai

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.

CWE-921

What to do

Fixed builds are available from PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
6Fix pending
5Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10scikit-learnFix pendingUBUNTU-CVE-2024-5206
Ubuntu 26.04scikit-learnNot affected
vulnerable_code_not_present
Ubuntu 25.10scikit-learnWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-5206
Ubuntu 24.04scikit-learnFix pendingUBUNTU-CVE-2024-5206
Ubuntu 22.04scikit-learnFix pendingUBUNTU-CVE-2024-5206
Ubuntu 20.04scikit-learnWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-5206
Ubuntu 18.04scikit-learnFix pendingUBUNTU-CVE-2024-5206
Ubuntu 16.04scikit-learnFix pendingUBUNTU-CVE-2024-5206
Ubuntu 14.04scikit-learnFix pendingUBUNTU-CVE-2024-5206
Debian 14scikit-learnWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-5206
Debian 13scikit-learnWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-5206
Debian 12scikit-learnWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2024-5206
PyPI libraryscikit-learnFixed1.5.0PYSEC-2024-110

What the vendor says

As published in the CVE record by @huntr_ai, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.