{"answers":{"affected":"3 open source packages ship an affected version, including scikit-learn. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5206 exists.","fix":"Upgrade scikit-learn to 1.5.0 or later.","what":"CVE-2024-5206 is a medium-severity vulnerability in scikit-learn/scikit-learn, published on 6 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-5206 and fix it if it is affected.\n\nWhat it is: CVE-2024-5206 is a medium-severity vulnerability in scikit-learn/scikit-learn, published on 6 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5206 exists.\n\nAffected packages and fixed versions:\n- scikit-learn (PyPI): affected all versions; fixed in 1.5.0\n- scikit-learn (PyPI): affected all versions; fixed in 1.5.0\n- scikit-learn (PyPI): affected all versions; fixed in 1.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-5206/ (Markdown: https://insights.sbomify.com/CVE-2024-5206/index.md)","id":"CVE-2024-5206","markdown":"https://insights.sbomify.com/CVE-2024-5206/index.md","name":"CVE-2024-5206","record":{"aliases":["CLSA-2026-1787201491","DEBIAN-CVE-2024-5206","ECHO-bf4b-fb83-a5a9","GHSA-jw8x-6495-233v","MGASA-2024-0228","MINI-g5g6-3h3f-vw35","OESA-2024-1745","PYSEC-2024-110","SUSE-SU-2024:2029-1","UBUNTU-CVE-2024-5206","openSUSE-SU-2024:14043-1","openSUSE-SU-2026:11498-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python machine learning library","requires_auth":"low_privilege","summary":"Attackers can access sensitive training data tokens stored in the TfidfVectorizer stop_words_ attribute, potentially exposing passwords or keys.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"scikit-learn","vendor":"scikit-learn"}],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-922","name":"Insecure Storage of Sensitive Information"},{"id":"CWE-921","name":"Storage of Sensitive Data in a Mechanism without Access Control"}],"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.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP6","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Sensitive Data Leakage in sklearn.feature_extraction.text.TfidfVectorizer in scikit-learn/scikit-learn","id":"CVE-2024-5206","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":9,"n_references":2,"next":{"headline":"SQL injection in Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP \u0026 Mobile App","id":"CVE-2024-5207"},"packages":[{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"scikit-learn","purl":null,"source":"GHSA-jw8x-6495-233v"},{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"scikit-learn","purl":"pkg:pypi/scikit-learn","source":"GHSA-jw8x-6495-233v"},{"ecosystem":"PyPI","fixed":["1.5.0"],"introduced":["0"],"last_affected":[],"package":"scikit-learn","purl":"pkg:pypi/scikit-learn","source":"PYSEC-2024-110"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["0.23.2-150300.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-scikit-learn","purl":"pkg:rpm/suse/python-scikit-learn\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2024:2029-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["0.23.2-150300.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-scikit-learn","purl":"pkg:rpm/suse/python-scikit-learn\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2024:2029-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["0.23.2-150300.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-scikit-learn","purl":"pkg:rpm/opensuse/python-scikit-learn\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:2029-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["0.23.2-150300.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-scikit-learn","purl":"pkg:rpm/opensuse/python-scikit-learn\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2029-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.5.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-scikit-learn","purl":"pkg:rpm/opensuse/python-scikit-learn\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14043-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.9.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-scikit-learn","purl":"pkg:rpm/opensuse/python-scikit-learn\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11498-1"}],"prev":{"headline":"Videojs HTML5 Player \u003c= 1.1.11 - Authenticated (Contributor+) Stored Cross-Site Scripting via videojs_video Shortcode","id":"CVE-2024-5205"},"products":["scikit-learn/scikit-learn"],"published":"2024-06-06","related":[{"cvss_score":9.8,"headline":"scikit-learn Deserialization of Untrusted Data","id":"CVE-2020-13092","kev_date_added":null,"published":"2020-05-15"},{"cvss_score":7.5,"headline":"scikit-learn Denial of Service","id":"CVE-2020-28975","kev_date_added":null,"published":"2020-11-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["scikit-learn"]},"summary":"Attackers can access sensitive training data tokens stored in the TfidfVectorizer stop_words_ attribute, potentially exposing passwords or keys.","url":"https://insights.sbomify.com/CVE-2024-5206/"}