PyPI: gradio
CVE-2024-1728
Safety vulnerability ID: SFTY-20240410-23574
Safety legacy ID: pyup.io-71662
Affected versions of the gradio package are vulnerable to Local File Inclusion due to improper validation of user-supplied input in the UploadButton component. The vulnerability exists in the handling of file upload paths within the /queue/join endpoint, where attackers can manipulate file path parameters to bypass intended access controls and redirect file operations to arbitrary filesystem locations.
Overview
Duplicate Advisory: Gradio Local File Inclusion vulnerability
Advisory
gradio - Local File Inclusion
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240410-23574/CVE-2024-1728
- https://nvd.nist.gov/vuln/detail/CVE-2024-1728
- https://github.com/gradio-app/gradio/commit/16fbe9cd0cffa9f2a824a0165beb43446114eec7
- https://huntr.com/bounties/9bb33b71-7995-425d-91cc-2c2a2f2a068a
- https://github.com/advisories/GHSA-3f95-mxq2-2f63
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
