Skip to content
Heist/ feed
Back to feed
Medium

Streamlit directory traversal vulnerability

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-35918
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 01:10 UTC · Revision 1

Source evidence

Streamlit directory traversal vulnerability

core-osv · Original source

Published 1 Aug 2022, 21:25 UTC

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.

osv:CVE-2022-35918
Complete source record
{
  "id": "2652a391644a213b13b0efac88e35531e2530e5801f4bf1ddf08b97e9c453b0b",
  "url": "https://osv.dev/vulnerability/CVE-2022-35918",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Streamlit directory traversal vulnerability",
    "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. This issue has been resolved in version 1.11.1. Users are advised to upgrade. There are no known workarounds for this issue.",
    "evidence": "osv:CVE-2022-35918",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-35918",
      "aliases": [
        "CVE-2022-35918",
        "GHSA-v4hr-4jpx-56gc",
        "PYSEC-2022-248"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/streamlit/streamlit",
              "type": "GIT",
              "events": [
                {
                  "introduced": "417b501171938ac556b01db028f61a934f5b4351"
                },
                {
                  "fixed": "b6429b6f03c212fd38496b429d20e0d986877e4c"
                },
                {
                  "fixed": "80d9979d5f4a00217743d607078a1d867fad8acf"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:snowflake:streamlit:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0.63.0"
                      },
                      {
                        "fixed": "1.11.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "80d9979d5f4a00217743d607078a1d867fad8acf"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35918.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.423896606Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35918.json",
        "https://github.com/streamlit/streamlit/security/advisories/GHSA-v4hr-4jpx-56gc",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-35918",
        "https://github.com/streamlit/streamlit/commit/80d9979d5f4a00217743d607078a1d867fad8acf"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35918.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-35918",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499407,
  "published_at": "2022-08-01T21:25:10+00:00"
}