CVE-2024-5206: PYSEC-2024-110 - A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up to and including 1.4.1.

CVE-2024-5206 · Severity: low · CVSS 3.1 · Published 2024-06-06

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.

Technologies: scikit-learn (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-5206 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-5206 being exploited in the wild.
How severe is CVE-2024-5206?
Low severity, with a CVSS score of 3.1, published 6 June 2024.
Which products and versions are affected?
scikit-learn (PyPI) ECOSYSTEM:introduced=0,fixed=1.5.0, GIT:introduced=0,fixed=70ca21f106b603b611da73012c9ade7cd8e438b8|ECOSYSTEM:introduced=0,fixed=1.5.0.
Is there a fix for CVE-2024-5206?
Yes. scikit-learn (PyPI): upgrade to 1.5.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-5206?
Check whether you run scikit-learn (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • scikit-learn (PyPI): upgrade to 1.5.0 or later
    pip install "scikit-learn>=1.5.0"

Affected products

  • scikit-learn (PyPI) ECOSYSTEM:introduced=0,fixed=1.5.0, GIT:introduced=0,fixed=70ca21f106b603b611da73012c9ade7cd8e438b8|ECOSYSTEM:introduced=0,fixed=1.5.0

Identifiers

  • CVE-2024-5206
  • GHSA-jw8x-6495-233v
  • PYSEC-2024-110

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.