# CVE-2024-1728: Gradio allows users to access arbitrary files

Source: https://junglewise.ai/threats/cve-2024-1728-gradio-allows-users-to-access-arbitrary-files  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-09-25  
License: CC BY 4.0 with a link back

CVE-2024-1728 · Severity: high · CVSS 8.1 · Published 2024-09-25

### Impact
This vulnerability allows users of Gradio applications that have a public link (such as on Hugging Face Spaces) to access files on the machine hosting the Gradio application. This involves intercepting and modifying the network requests made by the Gradio app to the server. 

### Patches
Yes, the problem has been patched in Gradio version 4.19.2 or higher. We have no knowledge of this exploit being used against users of Gradio applications, but we encourage all users to upgrade to Gradio 4.19.2 or higher.

Fixed in: https://github.com/gradio-app/gradio/commit/16fbe9cd0cffa9f2a824a0165beb43446114eec7
CVE: https://nvd.nist.gov/vuln/detail/CVE-2024-1728

Technologies: [gradio (PyPI)](https://junglewise.ai/threats/technologies/gradio). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-1728 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-1728 being exploited in the wild.

**How severe is CVE-2024-1728?** High severity, with a CVSS score of 8.1, published 25 September 2024.

**Which products and versions are affected?** gradio (PyPI) < 4.19.2, ECOSYSTEM:introduced=0,fixed=4.19.2.

**Is there a fix for CVE-2024-1728?** Yes. gradio (PyPI): upgrade to 4.19.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-1728?** Check whether you run gradio (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

- gradio (PyPI): upgrade to 4.19.2 or later

  ```sh
  pip install "gradio>=4.19.2"
  ```


## Affected products

- gradio (PyPI) < 4.19.2, ECOSYSTEM:introduced=0,fixed=4.19.2

## Identifiers

- CVE-2024-1728
- GHSA-m842-4qm8-7gpq
- PYSEC-2026-345

## Related threats

- [PYSEC-2026-1423 - Gradio CORS Origin Validation Bypass Vulnerability](https://junglewise.ai/threats/cve-2025-5320-gradio-cors-origin-validation-bypass-vulnerability)
- [PYSEC-2026-1410 - Gradio DOS in multipart boundry while uploading the file](https://junglewise.ai/threats/cve-2024-8966-gradio-dos-in-multipart-boundry-while-uploading-the-file)
- [PYSEC-2026-1411 - Gradio Vulnerable to Open Redirect](https://junglewise.ai/threats/cve-2024-8021-gradio-vulnerable-to-open-redirect)
- [PYSEC-2026-1418 - Gradio Path Traversal vulnerability](https://junglewise.ai/threats/cve-2024-12217-gradio-path-traversal-vulnerability)
- [PYSEC-2026-1417 - Gradio Vulnerable to Arbitrary File Deletion](https://junglewise.ai/threats/cve-2024-10648-gradio-vulnerable-to-arbitrary-file-deletion)
