4.7

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

Modified
AliasesMGASA-2024-0228SUSE-SU-2024:2029-1GHSA-jw8x-6495-233v
Published 06-06-2024Last modified 01-08-2024

Vulnerability summary

CVE-2024-5206 is a medium (CVSS 4.7) vulnerability in scikit-learn. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.7/10
010
Medium · v3.0 (CVE.org)
EPSS score
0.19%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 4

Timeline

  1. 06-06-2024
    PublishedVulnerability first disclosed.
  2. 01-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

9 scores · 7 sources · 2 versions

EPSS trend

Probability

0.19%

Chance of exploitation in the next 30 days

Percentile

9%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.19% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard3 products
  • kubeflow-katib< 0.16.0-r12
  • kubeflow-pipelines-visualization-server< 2.3.0-r1
  • py3-scikit-learn< 1.5.0-r0
Opensuse3 products
  • python-scikit-learn&distro=openSUSE Leap 15.5< 0.23.2-150300.3.3.1
  • python-scikit-learn&distro=openSUSE Leap 15.6< 0.23.2-150300.3.3.1
  • python-scikit-learn&distro=openSUSE Tumbleweed< 1.5.0-1.1 | < 1.9.0-1.1
Wolfi3 products
  • kubeflow-katib< 0.16.0-r12
  • kubeflow-pipelines-visualization-server< 2.3.0-r1
  • py3-scikit-learn< 1.5.0-r0
Scikit-learn2 products
Suse2 products
  • python-scikit-learn&distro=SUSE Linux Enterprise Module for Package Hub 15 SP5< 0.23.2-150300.3.3.1
  • python-scikit-learn&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6< 0.23.2-150300.3.3.1
Debian1 product
  • scikit-learnAll versions (No fix recorded)
Mageia1 product
  • python-scikit-learn< 1.1.2-2.1.mga9
PyPI1 product
  • scikit-learn< 70ca21f106b603b611da73012c9ade7cd8e438b8 | < 1.5.0
Ubuntu1 product
  • scikit-learnAll versions (No fix recorded)

9 vendors · 17 products

References

16 links
Show all 16 references