Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE-2022-35918
Summary
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 or overwrite existing files on the web server. While the initial vulnerability affected versions 0.63.0 through 1.11.0, a minor issue persisted under specific conditions, potentially exposing certain files on the server file system in versions 0.63.0 prior to 1.30.0. Users hosting Streamlit apps are strongly advised to upgrade to version 1.30.0, as this release contains the comprehensive fix for the identified issues. No known workarounds exist for this vulnerability.
- LOW
- NETWORK
- NONE
- UNCHANGED
- REQUIRED
- NONE
- HIGH
- NONE
CWE-22 - Path Traversal
Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.
References
Advisory Timeline
- Published