Path traveral in Streamlit on windows
Medium5.9CVE-2024-42474 · Published Aug 12, 2024 · updated Nov 26, 2024
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| streamlit PyPI | < 1.37.0 | 1.37.0 |
Details and references
### 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](https://docs.streamlit.io/develop/concepts/configuration/serving-static-files). 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](https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N) #### 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](https://docs.streamlit.io/develop/concepts/configuration/serving-static-files) 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](https://hackerone.com/snowflake?type=team).
- CVSS 3.0
- CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-22
- Also known as
- CVE-2024-42474, PYSEC-2024-153
More Streamlit advisories
All Streamlit| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jan 122024 | Minor fix to previous patch for CVE-2022-35918 GHSA-8qw9-gf7w-42x5Medium5.3fixed in 1.30.0 | Medium5.3 | 1.30.0 |
| Mar 172023 | Streamlit publishes previously-patched Cross-site Scripting vulnerability CVE-2023-27494Medium5.9fixed in 0.81.0 | Medium5.9 | 0.81.0 |
| Mar 25 | Unauthenticated SSRF Vulnerability in Streamlit on Windows (NTLM Credential Exposure) CVE-2026-33682Medium4.7fixed in 1.54.0 | Medium4.7 | 1.54.0 |
| Jun 4 | Streamlit @st.cache_data hash collision via fixed sampling seed and PIL P-mode palette omission CVE-2026-10804Low3.6fixed in 1.53.1 | Low3.6 | 1.53.1 |
| Aug 62022 | Streamlit directory traversal vulnerability CVE-2022-35918Medium6.5fixed in 1.11.1 | Medium6.5 | 1.11.1 |