Streamlit directory traversal vulnerability
CVE-2022-35918 · GHSA-v4hr-4jpx-56gc · published 2022-08-06 · updated 2023-01-31
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 1.8%
- Fixed in
- 1.11.1
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade streamlit to 1.11.1 or later.
On July 27th at 2:20PM PST we rolled out a patch in release 1.11.1. This patch ensures that any file operations are restricted only to the custom component directory and cannot traverse outside of that. We strongly recommend users upgrade to v1.11.1 as soon as possible. We have notified the Streamlit community and popular hosting providers about this issue so they can patch quickly. As a precautionary measure, we are also upgrading all users on Streamlit Cloud wherever possible. We continue to check other occurrences of this vulnerability and monitor potential exploits wherever we can.
None.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| streamlit | PyPI | >= 0.63.0, < 1.11.1 | 1.11.1 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- MediumUnauthenticated SSRF Vulnerability in Streamlit on Windows (NTLM Credential Exposure)streamlit
- MediumPath traveral in Streamlit on windowsstreamlit
- MediumMinor fix to previous patch for CVE-2022-35918streamlit
- MediumStreamlit publishes previously-patched Cross-site Scripting vulnerabilitystreamlit
- LowStreamlit @st.cache_data hash collision via fixed sampling seed and PIL P-mode palette omissionstreamlit
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.