{"answers":{"affected":"3 open source packages ship an affected version, including streamlit. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-42474 in the wild and no public exploit code.","fix":"Upgrade streamlit to 1.37.0 or later.","what":"CVE-2024-42474 is a medium-severity path traversal vulnerability in streamlit, published on 12 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-42474 and fix it if it is affected.\n\nWhat it is: CVE-2024-42474 is a medium-severity path traversal vulnerability in streamlit, published on 12 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-42474 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- streamlit (PyPI): affected all versions; fixed in 1.37.0\n- streamlit (PyPI): affected all versions; fixed in 1.37.0\n- streamlit (PyPI): affected all versions; fixed in 1.37.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-42474/ (Markdown: https://insights.sbomify.com/CVE-2024-42474/index.md)","id":"CVE-2024-42474","markdown":"https://insights.sbomify.com/CVE-2024-42474/index.md","name":"CVE-2024-42474","record":{"aliases":["GHSA-rxff-vr5r-8cj5","PYSEC-2024-153"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Python web framework","requires_auth":"low_privilege","summary":"Attackers can exploit path traversal in Streamlit's static file sharing on Windows to leak the running user's password hash.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"streamlit","vendor":"snowflake"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Streamlit is a data oriented application development framework for python. Snowflake Streamlit open source addressed a security vulnerability via the static file sharing feature. Users of hosted Streamlit app(s) on Windows were vulnerable to a path traversal vulnerability when the static file sharing feature is enabled. An attacker could utilize the vulnerability to leak the password hash of the Windows user running Streamlit. The vulnerability was patched on Jul 25, 2024, as part of Streamlit open source version 1.37.0. The vulnerability only affects Windows.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Streamlit Path Traversal Security Vulnerability on Windows","id":"CVE-2024-42474","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Cross-site request forgery in oauth","id":"CVE-2024-42475"},"packages":[{"ecosystem":"PyPI","fixed":["1.37.0"],"introduced":["0"],"last_affected":[],"package":"streamlit","purl":null,"source":"GHSA-rxff-vr5r-8cj5"},{"ecosystem":"PyPI","fixed":["1.37.0"],"introduced":["0"],"last_affected":[],"package":"streamlit","purl":"pkg:pypi/streamlit","source":"GHSA-rxff-vr5r-8cj5"},{"ecosystem":"PyPI","fixed":["1.37.0"],"introduced":["0"],"last_affected":[],"package":"streamlit","purl":"pkg:pypi/streamlit","source":"PYSEC-2024-153"}],"prev":{"headline":"OpenFGA Authorization Bypass","id":"CVE-2024-42473"},"products":["streamlit"],"published":"2024-08-12","related":[{"cvss_score":6.5,"headline":"Streamlit directory traversal vulnerability","id":"CVE-2022-35918","kev_date_added":null,"published":"2022-08-01"},{"cvss_score":5.9,"headline":"Streamlit Cross-site Scripting vulnerability","id":"CVE-2023-27494","kev_date_added":null,"published":"2023-03-16"},{"cvss_score":4.7,"headline":"Streamlit on Windows has Unauthenticated SSRF Vulnerability (NTLM Credential Exposure)","id":"CVE-2026-33682","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":2,"headline":"Streamlit Palette hashing.py weak hash","id":"CVE-2026-10804","kev_date_added":null,"published":"2026-06-04"}],"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":"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-12","vendors":["streamlit"]},"summary":"Attackers can exploit path traversal in Streamlit's static file sharing on Windows to leak the running user's password hash.","url":"https://insights.sbomify.com/CVE-2024-42474/"}