Path traveral in Streamlit on windows
Published 12 Aug 2024 · Updated 26 Nov 2024
Is your project on an affected streamlit?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.37.0
- Fixed in
- 1.37.0
pip install 'streamlit>=1.37.0'Details
1. Impacted Products
Streamilt Open Source versions before 1.37.0.
2. Introduction
Snowflake Streamlit open source addressed a security vulnerability via the static file sharing feature. The vulnerability was patched on Jul 25, 2024, as part of Streamlit open source version 1.37.0. The vulnerability only affects Windows.
3. Path Traversal Vulnerability
3.1 Description
On May 12, 2024, Streamlit was informed via our bug bounty program about a path traversal vulnerability in the open source library. We fixed and merged a patch remediating the vulnerability on Jul 25, 2024. The issue was determined to be in the moderate severity range with a maximum CVSSv3 base score of 5.9
3.2 Scenarios and attack vector(s)
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.
3.3 Resolution
The vulnerability has been fixed in all Streamlit versions released since Jul 25, 2024. We recommend all users upgrade to Version 1.37.0.
4. Contact
Please contact security@snowflake.com if you have any questions regarding this advisory. If you discover a security vulnerability in one of our products or websites, please report the issue to HackerOne. For more information, please see our Vulnerability Disclosure Policy.
Is GHSA-rxff-vr5r-8cj5 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected streamlit, and gives you the command that fixes it.
More advisories for streamlit
- LowCVE-2026-10804Streamlit @st.cache_data hash collision via fixed sampling seed and PIL P-mode palette omission · 4 Jun 2026
- MediumCVE-2026-33682Unauthenticated SSRF Vulnerability in Streamlit on Windows (NTLM Credential Exposure) · 25 Mar 2026
- MediumGHSA-8qw9-gf7w-42x5Minor fix to previous patch for CVE-2022-35918 · 12 Jan 2024
- MediumCVE-2023-27494Streamlit publishes previously-patched Cross-site Scripting vulnerability · 17 Mar 2023
- MediumCVE-2022-35918Streamlit directory traversal vulnerability · 6 Aug 2022
References
- Linkgithub.com/streamlit/streamlit/security/advisories/GHSA-rxff-vr5r-8cj5
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-42474
- Linkgithub.com/streamlit/streamlit/commit/3a639859cfdfba2187c81897d44a3e33825eb0a3
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/streamlit/PYSEC-2024-153.yaml
- Packagegithub.com/streamlit/streamlit
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.