What’s Vulnerable › Vulnerabilities
CVE-2022-35918: Streamlit directory traversal vulnerability
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-08-01 · updated 2026-06-17
- Weakness: CWE-22
Description
Streamlit is a data oriented application development framework for python. Users hosting Streamlit app(s) that use custom components are vulnerable to a directory traversal attack that could leak data from their web server file-system such as: server logs, world readable files, and potentially other sensitive information. An attacker can craft a malicious URL with file paths and the streamlit server would process that URL and return the contents of that file. This issue has been resolved in version 1.11.1. Users are advised to upgrade. There are no known workarounds for this issue.
Affected products
- streamlit: from 0.63.0 before 1.11.1 — fixed in 1.11.1
How to fix
Upgrade to a fixed version: streamlit 1.11.1. Check the vendor advisory for mitigations.
References
- https://github.com/streamlit/streamlit/commit/80d9979d5f4a00217743d607078a1d867fad8acf
- https://github.com/streamlit/streamlit/security/advisories/GHSA-v4hr-4jpx-56gc
- https://github.com/streamlit/streamlit/commit/80d9979d5f4a00217743d607078a1d867fad8acf
- https://github.com/streamlit/streamlit/security/advisories/GHSA-v4hr-4jpx-56gc
Get alerted when CVE-2022-35918 or the next vulnerability affects your stack