GHSA-v4hr-4jpx-56gc

Source
https://github.com/advisories/GHSA-v4hr-4jpx-56gc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-v4hr-4jpx-56gc/GHSA-v4hr-4jpx-56gc.json
Aliases
Published
2022-08-06T05:51:50Z
Modified
2023-11-08T04:09:52.554382Z
Details

Impact

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.

Patches

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.

Finally, as a general security practice, we recommend users review custom components for any malicious code before using them in their apps. Following security best practices such as running web servers with low privileges, firewalls, etc. for hosting your apps, helps in mitigating the severity of such exploits.

Workarounds

None.

References

  • https://docs.google.com/document/d/e/2PACX-1vRzF9K6gwv9KnQz---1pt0SdHMVt-CHuKMmdTH1uct7xPcK7vToP4FvYdI84aO6rGfCmrBSaViri0Nd/pub

For more information

If you have any questions or comments about this advisory: * Email us at security@streamlit.io

References

Affected packages

PyPI / streamlit

Package

Name
streamlit

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.63.0
Fixed
1.11.1

Affected versions

0.*

0.63.0
0.63.1
0.64.0
0.65.0
0.65.1
0.65.2
0.66.0
0.67.0
0.67.1
0.68.0
0.68.1
0.69.0
0.69.1
0.69.2
0.70.0
0.71.0
0.72.0
0.73.0
0.73.1
0.74.0
0.74.1
0.75.0
0.76.0
0.77.0
0.78.0
0.79.0
0.80.0
0.81.0
0.81.1
0.82.0
0.83.0
0.84.0
0.84.1
0.84.2
0.85.0
0.85.1
0.86.0
0.87.0
0.88.0
0.89.0

1.*

1.0.0
1.1.0
1.2.0
1.3.0
1.3.1
1.4.0
1.5.0
1.5.1
1.6.0rc3
1.6.0rc4
1.6.0
1.7.0
1.8.0rc1
1.8.0
1.8.1rc1
1.8.1
1.9.0rc1
1.9.0
1.9.1rc1
1.9.1rc2
1.9.1
1.9.2rc1
1.9.2
1.10.0rc1
1.10.0rc2
1.10.0
1.11.0rc1
1.11.0
1.11.1rc1