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

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). 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.