Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-5206

MEDIUM 4.7EPSS 9%

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

Also known as GHSA-jw8x-6495-233v, PYSEC-2024-110

Mitigation

  • Upgrade scikit-learn to 1.5.0 or later.

Who should check

  • Projects that depend on PyPI package scikit-learn (< 1.5.0)
  • Anyone running scikit-learn/scikit-learn >= unspecified, < 1.5.0

Vulnerability facts

Affected
scikit-learn < 1.5.0
Fixed in
1.5.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.7 (v3.0, CNA)CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
0.23% chance of exploitation in 30 days (percentile 9, 2026-11-26)
CWE
CWE-921
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI scikit-learn< 1.5.01.5.0osv
scikit-learn/scikit-learn>= unspecified, < 1.5.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-5206. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-5206.md
Affected: scikit-learn < 1.5.0
Fixed in: 1.5.0

Steps:
1. Search this machine and project for scikit-learn (PyPI), scikit-learn/scikit-learn: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-5206 being exploited?

There is no confirmed exploitation: CVE-2024-5206 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-5206?

Medium: CVSS 4.7 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2024-5206?

scikit-learn < 1.5.0.

Is there a fix for CVE-2024-5206?

Yes. Fixed in 1.5.0. Upgrade scikit-learn to 1.5.0 or later.

How do I check if I'm affected by CVE-2024-5206?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors