Skip to content
MediumVulnerability

CVE-2024-5206: scikit-learn TfidfVectorizer leaks sensitive training tokens via stop_words_

Identifier
CVE-2024-5206
Published
Record updated
View JSON
Affected
  • scikit-learn < 1.5.0
Fixed in
1.5.0
  • released May 21, 2024, 16 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

CVE-2024-5206 affects scikit-learn's TfidfVectorizer in versions up to and including 1.4.1.post1. The vectorizer stores every token from the training data in its `stop_words_` attribute, not only the tokens TF-IDF needs, so tokens meant to be discarded, such as passwords or keys, can be exposed. The impact depends on the data the vectorizer processes.

Mitigation

Fixed in 1.5.0