CVE-2024-5206

CVE-2024-5206 is a medium-severity vulnerability in Scikit-learn with a CVSS 3.x base score of 4.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-922.

Key facts

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.

Frequently asked questions

What is CVE-2024-5206?
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.
How severe is CVE-2024-5206?
CVE-2024-5206 has a CVSS 3.x base score of 4.7, rated medium severity. It is exploitable over local access with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2024-5206 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (8th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-5206?
CVE-2024-5206 affects Scikit-learn. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-5206?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-5206 have an EU (EUVD) identifier?
Yes. CVE-2024-5206 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0161.
When was CVE-2024-5206 published?
CVE-2024-5206 was published on 2024-06-06 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Scikit-learn

All CVEs affecting Scikit-learn →

Other CWE-922 vulnerabilities

Browse all CWE-922 vulnerabilities →