CVE-2022-35918: Streamlit directory traversal vulnerability

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). 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.