CVE-2024-5206
CVE-2024-5206 · Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 4.7 · Medium · EPSS 0.2% · Fix available
- Published
- Updated
Affected products and versions
scikit-learn/scikit-learn
- Versions
- ≥ unspecified, < 1.5.0: Affected (custom)
Update to 1.5.0
scikit-learn Debian:12
- Versions
- 1.2.1+dfsg-1
- 1.4.1.post1+dfsg-1
- 1.4.2+dfsg-1
- 1.4.2+dfsg-2
- 1.4.2+dfsg-3
- 1.4.2+dfsg-4
- 1.4.2+dfsg-5
- 1.4.2+dfsg-6
- 1.4.2+dfsg-7
- 1.4.2+dfsg-8
- 1.7.2+dfsg-1
- 1.7.2+dfsg-2
- 1.7.2+dfsg-3
- 1.7.2+dfsg-4
- 1.8.0+dfsg-1
- 1.8.0+dfsg-2
- 1.8.0+dfsg-3
- 1.8.0+dfsg-4
- 1.8.0+dfsg-5
- 1.9.0+dfsg-1
- 1.9.0+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Debian:13
- Versions
- 1.4.2+dfsg-8
- 1.7.2+dfsg-1
- 1.7.2+dfsg-2
- 1.7.2+dfsg-3
- 1.7.2+dfsg-4
- 1.8.0+dfsg-1
- 1.8.0+dfsg-2
- 1.8.0+dfsg-3
- 1.8.0+dfsg-4
- 1.8.0+dfsg-5
- 1.9.0+dfsg-1
- 1.9.0+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Debian:14
- Versions
- 1.4.2+dfsg-8
- 1.7.2+dfsg-1
- 1.7.2+dfsg-2
- 1.7.2+dfsg-3
- 1.7.2+dfsg-4
- 1.8.0+dfsg-1
- 1.8.0+dfsg-2
- 1.8.0+dfsg-3
- 1.8.0+dfsg-4
- 1.8.0+dfsg-5
- 1.9.0+dfsg-1
- 1.9.0+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn PyPI
- Versions
- 0.10
- 0.11
- 0.12
- 0.12.1
- 0.13
- 0.13.1
- 0.14
- 0.14.1
- 0.15.0
- 0.15.1
- 0.15.2
- 0.16.0
- 0.16.1
- 0.17
- 0.17.1
- 0.18
- 0.18.1
- 0.18.2
- 0.19.0
- 0.19.1
- 0.19.2
- 0.20.0
- 0.20.1
- 0.20.2
- 0.20.3
- 0.20.4
- 0.21.0
- 0.21.1
- 0.21.2
- 0.21.3
- 0.22
- 0.22.1
- 0.22.2
- 0.22.2.post1
- 0.23.0
- 0.23.1
- 0.23.2
- 0.24.0
- 0.24.1
- 0.24.2
- 0.9
- 1.0
- 1.0.1
- 1.0.2
- 1.1.0
- 1.1.1
- 1.1.2
- 1.1.3
- 1.2.0
- 1.2.0rc1
- 1.2.1
- 1.2.2
- 1.3.0
- 1.3.0rc1
- 1.3.1
- 1.3.2
- 1.4.0
- 1.4.0rc1
- 1.4.1.post1
- 1.4.2
- 1.5.0rc1
- Affected ranges
- ECOSYSTEM: < 1.5.0
Update to 1.5.0
scikit-learn PyPI
- Versions
- 0.10
- 0.11
- 0.12
- 0.12.1
- 0.13
- 0.13.1
- 0.14
- 0.14.1
- 0.15.0
- 0.15.1
- 0.15.2
- 0.16.0
- 0.16.1
- 0.17
- 0.17.1
- 0.18
- 0.18.1
- 0.18.2
- 0.19.0
- 0.19.1
- 0.19.2
- 0.20.0
- 0.20.1
- 0.20.2
- 0.20.3
- 0.20.4
- 0.21.0
- 0.21.1
- 0.21.2
- 0.21.3
- 0.22
- 0.22.1
- 0.22.2
- 0.22.2.post1
- 0.23.0
- 0.23.1
- 0.23.2
- 0.24.0
- 0.24.1
- 0.24.2
- 0.9
- 1.0
- 1.0.1
- 1.0.2
- 1.1.0
- 1.1.1
- 1.1.2
- 1.1.3
- 1.2.0
- 1.2.0rc1
- 1.2.1
- 1.2.2
- 1.3.0
- 1.3.0rc1
- 1.3.1
- 1.3.2
- 1.4.0
- 1.4.0rc1
- 1.4.1.post1
- 1.4.2
- 1.5.0rc1
- 0.19-branching
- 0.17-branching
- 0.15-branching
- 0.13-branching
- 0.12-branching
- 0.11-branching
- 0.11-beta
- 0.3
- 0.2
- 0.2-beta
- 0.1
- 0.1-beta
- Affected ranges
- GIT: < 70ca21f106b603b611da73012c9ade7cd8e438b8
- ECOSYSTEM: < 1.5.0
Update to 1.5.0
scikit-learn Ubuntu:14.04:LTS
- Versions
- 0.13.1-1
- 0.14.1-1
- 0.14.1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:16.04:LTS
- Versions
- 0.16.1-2
- 0.17.0-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:18.04:LTS
- Versions
- 0.19.0-1build1
- 0.19.1-1
- 0.19.1-2
- 0.19.1-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:20.04:LTS
- Versions
- 0.20.3+dfsg-0ubuntu2
- 0.20.3+dfsg-0ubuntu3
- 0.22.2.post1+dfsg-5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:22.04:LTS
- Versions
- 0.23.2-5ubuntu2
- 0.23.2-5ubuntu4
- 0.23.2-5ubuntu6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:24.04:LTS
- Versions
- 1.2.1+dfsg-1build1
- 1.2.1+dfsg-1build2
- 1.4.1.post1+dfsg-1
- 1.4.1.post1+dfsg-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:25.10
- Versions
- 1.4.2+dfsg-8
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:26.10
- Versions
- 1.7.2+dfsg-4build1
- 1.9.0+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
scikit-learn Ubuntu:26.04:LTS
- Versions
- 1.4.2+dfsg-8
- 1.7.2+dfsg-3ubuntu1
- 1.7.2+dfsg-4
- 1.7.2+dfsg-4build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published