Skip to main content
CVE-2024-5206VulnerabilityPublished Updated

A sensitive data leakage vulnerability was identified in scikit-learn's TfidfVectorizer, specifically in versions up

Affects scikit-learnSource GCVE Database

0
Compare

Not known to be exploited · CVSS 4.7 Medium · fixed in 1.5.0 : update scikit-learn when convenient.

Data as of 9 Nov 2026, 14:36 UTC

CVSS 3.0 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.5.0
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10scikit-learnpkg:deb/ubuntu/scikit-learn?arch=source&distro=stonkingOther threatsAffected
  • =1.7.2+dfsg-4build1
  • =1.9.0+dfsg-1
Fixed in–
Ubuntu 25.10scikit-learnpkg:deb/ubuntu/scikit-learn?arch=source&distro=questingOther threatsAffected
  • =1.4.2+dfsg-8
Fixed in–
Ubuntu 24.04 LTSscikit-learnpkg:deb/ubuntu/scikit-learn?arch=source&distro=nobleOther threatsAffected
  • 1.2.1+dfsg-1build1 – 1.4.1.post1+dfsg-1build1
4 affected builds
Fixed in–
Ubuntu 22.04 LTSscikit-learnpkg:deb/ubuntu/scikit-learn?arch=source&distro=jammyOther threatsAffected
  • =0.23.2-5ubuntu2
  • =0.23.2-5ubuntu4
  • =0.23.2-5ubuntu6
Fixed in–
Ubuntu 20.04 LTSscikit-learnpkg:deb/ubuntu/scikit-learn?arch=source&distro=focalOther threatsAffected
  • =0.20.3+dfsg-0ubuntu2
  • =0.20.3+dfsg-0ubuntu3
  • =0.22.2.post1+dfsg-5
Fixed in–
Ubuntu 18.04 LTSscikit-learnpkg:deb/ubuntu/scikit-learn?arch=source&distro=bionicOther threatsAffected
  • 0.19.0-1build1 – 0.19.1-3
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade scikit-learn to version 1.5.0 or later, where this vulnerability has been fixed. No other mitigation actions are indicated.

Description

A sensitive data leakage vulnerability exists in scikit-learn's TfidfVectorizer up to and including version 1.4.1.post1. The issue is due to the `stop_words_` attribute storing all tokens from the training data rather than only the necessary subset, potentially exposing sensitive tokens such as passwords or keys. This vulnerability was fixed in version 1.5.0. The impact depends on the nature of the data processed by the vectorizer.

References

Community reviews

Loading reviews…