Security Resilience

CVE-2024-5206

Scikit-Learn ≤ 1.5.0

Published
06 June 2024
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 4.7
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.0019 8th percentile
Risk Priority 36 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-5206 is a medium-severity Storage of Sensitive Data in a Mechanism without Access Control (CWE-921) vulnerability in Scikit-Learn. Its CVSS base score is 4.7 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Data from Removable Media (T1025); ranked at the 8th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

This vulnerability is AI-related — categorised as Machine Learning Libraries; in the Privacy and Disclosure risk domain.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-6 (Least Privilege) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
Machine Learning Libraries
Risk Domain
Privacy and Disclosure
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
scikit-learn is a core machine learning library, and TfidfVectorizer is a component for text vectorization in ML/NLP pipelines, directly fitting the Machine Learning Libraries category.

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1025 Data from Removable Media Collection
Adversaries may search connected removable media on computers they have compromised to find files of interest.
T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
T1697 Steal Application Specific Passwords Credential Access
Adversaries may steal Application Specific Passwords (ASPs) to gain access to [Valid Accounts](https://attack.
T1552.001 Credentials In Files Credential Access
Adversaries may search local file systems and remote file shares for files containing insecurely stored credentials.
T1565 Data Manipulation Impact
Adversaries may insert, delete, or manipulate data in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
T1565.001 Stored Data Manipulation Impact
Adversaries may insert, delete, or manipulate data at rest in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-41965Shared CWE-921, CWE-922
CVE-2023-2665Shared CWE-921, CWE-922
CVE-2025-24843Shared CWE-921
CVE-2023-41818Shared CWE-921
CVE-2025-24870Shared CWE-921
CVE-2025-30016Shared CWE-921
CVE-2024-7569Shared CWE-922
CVE-2024-10028Shared CWE-922
CVE-2025-22984Shared CWE-922
CVE-2024-38496Shared CWE-922

Affected Assets

scikit-learn
scikit-learn
≤ 1.5.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 1 hardening rule · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)

—

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

AC-3 directly requires enforcement of access authorizations on system resources including stored data, structurally eliminating storage without access control.

Requires protection of confidentiality/integrity for information at rest, directly addressing insecure storage.

Limits privileges so only authorized accesses to sensitive stored data are permitted.

Associates security attributes with information to support proper access decisions on storage.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.AA-05 full match
blocks

Defining and enforcing access permissions on storage directly prevents the weakness.

PR.DS-01 mostly match
blocks

Protecting data-at-rest typically requires access controls or encryption on storage mechanisms.

PR.IR-01 partial match
blocks

Logical access protections on environments can reduce exposure of uncontrolled storage.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

Access control policy directly requires protection of sensitive data wherever it is stored.

blocks

Granting and reviewing access rights prevents unauthorized access to sensitive data on storage media.

blocks

A.8.24 well implemented mandates encryption (and with it authenticity/integrity protection via authenticated encryption) for sensitive data held on storage media, which blocks the read and modify exploitation of CWE-921 even though the underlying storage mechanism still lacks access control; the remainder is bounded by key compromise, implementation flaws, and cases where cryptography is not applied to the specific data store.

finds

A.8.29's combined programme (code review, static analysis, penetration testing) reaches CWE-921 through both source and runtime routes — a reviewer can see sensitive data being written to external/public storage, SAST can flag storage-API use with sensitive payloads, and a pentester can find the data sitting in an accessible location. The remainder is bounded and nameable: cases where the data's sensitivity is not apparent from code or storage context alone, so the storage-mechanism choice is not flagged.

removes

A.8.3, when applied to a system with existing CWE-921 instances, configures access controls on the storage mechanism (per-user/identity permissions, isolation, authentication, and encryption under dynamic access management), removing the weakness in most cases; the bounded remainder is storage media that are physically portable and accessed outside the system's access-control plane, though A.8.3's encryption guidance partially addresses this.

finds

A.5.26 is an incident response control with no systematic finding mechanism for CWE-921; it only identifies weaknesses as a byproduct of post-incident root-cause analysis (items i and j), which reaches only instances that have caused detectable incidents — a small minority of latent CWE-921 instances, parallel to the A.8.16 monitoring anchors graded `none` for finding weaknesses.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-922, a class-level weakness. Rules are authored against its narrower children: CWE-312.

References