Every CVE Search/ Get API key

CVE-2024-5206

Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn

4.7 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

0.19%Up 0.1 points since Jun 7, 2024
90%50%10%1%

What each source reports

CVE List Score used 4.7

Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn

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.

Record
CVE-2024-5206
CVSS 3.0
4.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-921
Updated
2026-11-02
EUVDEUVD-2024-0161 4.7

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.

Record
EUVD-2024-0161
CVSS 3.0
4.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-jw8x-6495-233v 5.3

scikit-learn sensitive data leakage vulnerability

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.

Record
GHSA-jw8x-6495-233v
CVSS 3.0
5.3 MediumCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-921, CWE-922
Updated
2026-11-02
NVD 4.7

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.

Record
CVE-2024-5206
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 3.0
4.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-921, CWE-922
Updated
2026-11-02
OSV 4.7

Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn

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.

Record
CVE-2024-5206
CVSS 3.0
4.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-921
Updated
2026-11-02
OSVDEBIAN-CVE-2024-5206 4.7

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.

Record
DEBIAN-CVE-2024-5206
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
Show 9 moreShow less
OSVGHSA-jw8x-6495-233v 5.3

scikit-learn sensitive data leakage vulnerability

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.

Record
GHSA-jw8x-6495-233v
CVSS 3.0
5.3 MediumCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-921, CWE-922
Updated
2026-11-02
OSVOESA-2024-1745 5.3

python-scikit-learn security update

A Python module for machine learning built on top of SciPy

Security Fix(es):

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.(CVE-2024-5206)

Record
OESA-2024-1745
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVPYSEC-2024-110 4.7

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.

Record
PYSEC-2024-110
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2024-5206 4.7

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.

Record
UBUNTU-CVE-2024-5206
CVSS 3.1
4.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 3.0
4.7 MediumCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVCLSA-2026-1787201491 No score

TuxCare security update for scikit-learn (1 CVE)

TuxCare rebuilt scikit-learn to address 1 CVE. Fixed in 1.0.2.post2+tuxcare.

Record
CLSA-2026-1787201491
Updated
2026-11-02
OSVMGASA-2024-0228 No score

Updated python-scikit-learn packages fix security vulnerability

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.

Record
MGASA-2024-0228
Updated
2026-11-02
OSVopenSUSE-SU-2024:14043-1 No score

python310-scikit-learn-1.5.0-1.1 on GA media

These are all security issues fixed in the python310-scikit-learn-1.5.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:14043-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:11498-1 No score

python313-scikit-learn-1.9.0-1.1 on GA media

These are all security issues fixed in the python313-scikit-learn-1.9.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11498-1
Updated
2026-11-02
OSVSUSE-SU-2024:2029-1 No score

Security update for python-scikit-learn

This update for python-scikit-learn fixes the following issues:

-CVE-2024-5206: Fixed a possible sensitive data leak in TfidfVectorizer. (bsc#1226185)

Record
SUSE-SU-2024:2029-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
scikit-learn
PyPI
before 1.5.0
1.5.0
scikit-learn
TuxCare:PyPI
1.0.2 up to 1.0.2.post2+tuxcare, plus listed versions
1.0.2.post1+tuxcare
1.0.2.post2+tuxcare
scikit-learn
Debian:12
All versions, plus listed versions
1.2.1+dfsg-11.4.1.post1+dfsg-11.4.2+dfsg-11.4.2+dfsg-21.4.2+dfsg-3
Show 16 moreShow less
1.4.2+dfsg-41.4.2+dfsg-51.4.2+dfsg-61.4.2+dfsg-71.4.2+dfsg-81.7.2+dfsg-11.7.2+dfsg-21.7.2+dfsg-31.7.2+dfsg-41.8.0+dfsg-11.8.0+dfsg-21.8.0+dfsg-31.8.0+dfsg-41.8.0+dfsg-51.9.0+dfsg-11.9.0+dfsg-2
None known
scikit-learn
Debian:13
All versions, plus listed versions
1.4.2+dfsg-81.7.2+dfsg-11.7.2+dfsg-21.7.2+dfsg-31.7.2+dfsg-4
Show 7 moreShow less
1.8.0+dfsg-11.8.0+dfsg-21.8.0+dfsg-31.8.0+dfsg-41.8.0+dfsg-51.9.0+dfsg-11.9.0+dfsg-2
None known
scikit-learn
Debian:14
All versions, plus listed versions
1.4.2+dfsg-81.7.2+dfsg-11.7.2+dfsg-21.7.2+dfsg-31.7.2+dfsg-4
Show 7 moreShow less
1.8.0+dfsg-11.8.0+dfsg-21.8.0+dfsg-31.8.0+dfsg-41.8.0+dfsg-51.9.0+dfsg-11.9.0+dfsg-2
None known
scikit-learn
PyPI
before 1.5.0, plus listed versions
0.100.110.120.12.10.13
Show 45 moreShow less
0.13.10.140.14.10.15.00.15.10.15.20.16.00.16.10.170.17.10.180.18.10.18.20.19.00.19.10.19.20.20.00.20.10.20.20.20.30.20.40.21.00.21.10.21.20.21.30.220.22.10.22.20.22.2.post10.23.00.23.10.23.20.24.00.24.10.24.20.91.01.0.11.0.21.1.01.1.11.1.21.1.31.2.01.2.0rc1
1.5.0
python-scikit-learn
Mageia:9
before 1.1.2-2.1.mga9
1.1.2-2.1.mga9
python-scikit-learn
openEuler:20.03-LTS-SP4
before 0.20.4-5.oe2003sp4
0.20.4-5.oe2003sp4
python-scikit-learn
openEuler:22.03-LTS-SP1
before 1.1.1-2.oe2203sp1
1.1.1-2.oe2203sp1
python-scikit-learn
openEuler:22.03-LTS-SP3
before 1.1.1-2.oe2203sp3
1.1.1-2.oe2203sp3
Show 17 moreShow less
Affected packages
PackageAffectedFixed
python-scikit-learn
openEuler:24.03-LTS
before 1.4.0-2.oe2403
1.4.0-2.oe2403
scikit-learn
PyPI
before 1.5.0, plus listed versions
0.100.110.120.12.10.13
Show 45 moreShow less
0.13.10.140.14.10.15.00.15.10.15.20.16.00.16.10.170.17.10.180.18.10.18.20.19.00.19.10.19.20.20.00.20.10.20.20.20.30.20.40.21.00.21.10.21.20.21.30.220.22.10.22.20.22.2.post10.23.00.23.10.23.20.24.00.24.10.24.20.91.01.0.11.0.21.1.01.1.11.1.21.1.31.2.01.2.0rc1
1.5.0
python-scikit-learn
SUSE:Linux Enterprise Module for Package Hub 15 SP5
before 0.23.2-150300.3.3.1
0.23.2-150300.3.3.1
python-scikit-learn
SUSE:Linux Enterprise Module for Package Hub 15 SP6
before 0.23.2-150300.3.3.1
0.23.2-150300.3.3.1
python-scikit-learn
openSUSE:Leap 15.5
before 0.23.2-150300.3.3.1
0.23.2-150300.3.3.1
python-scikit-learn
openSUSE:Leap 15.6
before 0.23.2-150300.3.3.1
0.23.2-150300.3.3.1
scikit-learn
Ubuntu:14.04:LTS
All versions, plus listed versions
0.13.1-10.14.1-10.14.1-2
None known
scikit-learn
Ubuntu:16.04:LTS
All versions, plus listed versions
0.16.1-20.17.0-4
None known
scikit-learn
Ubuntu:18.04:LTS
All versions, plus listed versions
0.19.0-1build10.19.1-10.19.1-20.19.1-3
None known
scikit-learn
Ubuntu:20.04:LTS
All versions, plus listed versions
0.20.3+dfsg-0ubuntu20.20.3+dfsg-0ubuntu30.22.2.post1+dfsg-5
None known
scikit-learn
Ubuntu:22.04:LTS
All versions, plus listed versions
0.23.2-5ubuntu20.23.2-5ubuntu40.23.2-5ubuntu6
None known
scikit-learn
Ubuntu:24.04:LTS
All versions, plus listed versions
1.2.1+dfsg-1build11.2.1+dfsg-1build21.4.1.post1+dfsg-11.4.1.post1+dfsg-1build1
None known
scikit-learn
Ubuntu:25.10
All versions, plus listed versions
1.4.2+dfsg-8
None known
scikit-learn
Ubuntu:26.10
All versions, plus listed versions
1.7.2+dfsg-4build11.9.0+dfsg-1
None known
scikit-learn
Ubuntu:26.04:LTS
All versions, plus listed versions
1.4.2+dfsg-81.7.2+dfsg-3ubuntu11.7.2+dfsg-41.7.2+dfsg-4build1
None known
python-scikit-learn
openSUSE:Tumbleweed
before 1.5.0-1.1
1.5.0-1.1
python-scikit-learn
openSUSE:Tumbleweed
before 1.9.0-1.1
1.9.0-1.1

History

History
RecordedChangedSources
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-5206 is a medium vulnerability (CVSS 4.7) in Scikit-learn, published June 6, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.19%, the 8th percentile. Fixed in scikit-learn 1.5.0.

References

Show 11 moreShow less
This page doesn't list everything

Left out here: 34 versions. The JSON record has them.

MoveEnter Open