CVE-2024-42474 Streamlit Path Traversal Security Vulnerability on Windows
Attackers can exploit path traversal in Streamlit's static file sharing on Windows to leak the running user's password hash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42474?
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.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2024-42474?
3 open source packages ship an affected version, including streamlit. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
streamlit PyPI | All versions | 1.37.0 |
streamlit PyPI | All versions | 1.37.0 |
streamlit PyPI | All versions | 1.37.0 |
Products include Snowflake Streamlit.
How do I fix CVE-2024-42474?
Upgrade streamlit to 1.37.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-42474 being exploited?
There is no known exploitation of CVE-2024-42474 in the wild and no public exploit code.
Other vulnerabilities in streamlit
Sources
Also known as GHSA-rxff-vr5r-8cj5, PYSEC-2024-153.