# CVE-2022-35918: Streamlit directory traversal vulnerability

Source: https://junglewise.ai/threats/cve-2022-35918-streamlit-directory-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-08-01  
License: CC BY 4.0 with a link back

CVE-2022-35918 · Severity: low · CVSS 3.1 · Published 2022-08-01

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. This issue has been resolved in version 1.11.1. Users are advised to upgrade. There are no known workarounds for this issue.

Technologies: [streamlit (PyPI)](https://junglewise.ai/threats/technologies/pypi-streamlit). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-35918 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-35918 being exploited in the wild.

**How severe is CVE-2022-35918?** Low severity, with a CVSS score of 3.1, published 1 August 2022.

**Which products and versions are affected?** streamlit (PyPI) ECOSYSTEM:introduced=0.63.0,fixed=1.11.1, GIT:introduced=0,fixed=80d9979d5f4a00217743d607078a1d867fad8acf|ECOSYSTEM:introduced=0.63.0,fixed=1.11.1.

**Is there a fix for CVE-2022-35918?** Yes. streamlit (PyPI): upgrade to 1.11.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-35918?** Check whether you run streamlit (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- streamlit (PyPI): upgrade to 1.11.1 or later

  ```sh
  pip install "streamlit>=1.11.1"
  ```


## Affected products

- streamlit (PyPI) ECOSYSTEM:introduced=0.63.0,fixed=1.11.1, GIT:introduced=0,fixed=80d9979d5f4a00217743d607078a1d867fad8acf|ECOSYSTEM:introduced=0.63.0,fixed=1.11.1

## Identifiers

- CVE-2022-35918
- GHSA-v4hr-4jpx-56gc
- PYSEC-2022-248

## Related threats

- [Streamlit weak hash in caching component](https://junglewise.ai/threats/cve-2026-10804-streamlit-weak-hash-in-caching-component)
- [Unauthenticated SSRF Vulnerability in Streamlit on Windows (NTLM Credential Exposure)](https://junglewise.ai/threats/cve-2026-33682-unauthenticated-ssrf-vulnerability-in-streamlit-on-windows-ntlm)
- [Path traveral in Streamlit on windows](https://junglewise.ai/threats/cve-2024-42474-path-traveral-in-streamlit-on-windows)
- [Streamlit publishes previously-patched Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2023-27494-streamlit-publishes-previously-patched-cross-site-scripting)
