{"id":"CVE-2024-5206","published":"2024-06-06T18:28:14Z","modified":"2024-08-01T21:03:11Z","title":"Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn","vendor":"scikit-learn","product":"scikit-learn/scikit-learn","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00189,"percentile":0.08665,"provenance":"source"},"cwes":[{"id":"CWE-921","name":"Storage of Sensitive Data in a Mechanism without Access Control"}],"references":[{"url":"https://huntr.com/bounties/14bc0917-a85b-4106-a170-d09d5191517c","tags":[]},{"url":"https://github.com/scikit-learn/scikit-learn/commit/70ca21f106b603b611da73012c9ade7cd8e438b8","tags":[]}],"priority":{"score":5.0,"factors":[{"name":"EPSS percentile","points":1.73},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"scikit-learn","affectedVersions":[{"vendor":"scikit-learn","product":"scikit-learn/scikit-learn","versions":[">= unspecified, < 1.5.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-07T15:11:02.549686Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"scikit-learn","vulnerableRanges":["<1.5.0"],"patched":["1.5.0"],"from":["GHSA-jw8x-6495-233v","PYSEC-2024-110"],"provenance":"source"}],"summary":{"text":"The flaw is in scikit-learn's sklearn.feature_extraction.text.TfidfVectorizer component, affecting versions up to and including 1.4.1.post1 and fixed in 1.5.0, where the stop_words_ attribute stores all tokens seen in the training data rather than only those needed for TF-IDF. An attacker with local access and low privileges, under high attack complexity and without user interaction, could read the stop_words_ attribute to recover sensitive tokens such as passwords or keys that were present in the training data and were meant to be discarded.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:41Z"},"euvd":{"id":"EUVD-2024-0161","exploited":false,"provenance":"source"}}