---
title: "CVE-2024-1728: Gradio allows users to access arbitrary files"
url: https://erroneo.us/security/cve/CVE-2024-1728/
description: "CVE-2024-1728 (gradio (PyPI)): gradio-app/gradio is vulnerable to a local file inclusion vulnerability due to improper validation of user-supplied input in…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-04-10
date_modified: 2026-02-03
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-1728"
kev: false
cvss: 9.2
epss: 0.85393
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** High exploit likelihood. EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 85.4% , percentile 99.7: FIRST’s model estimates a 85.4% chance of exploitation activity in the next 30 days, higher than 99.7% of all scored CVEs (very high). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes gradio (PyPI) < 4.19.2, fixed in 4.19.2 . Check your lockfile, including transitive dependencies.

## What it is

gradio-app/gradio is vulnerable to a local file inclusion vulnerability due to improper validation of user-supplied input in the UploadButton component. Attackers can exploit this vulnerability to read arbitrary files on the filesystem, such as private SSH keys, by manipulating the file path in the request to the /queue/join endpoint. This issue could potentially lead to remote code execution. The vulnerability is present in the handling of file upload paths, allowing attackers to redirect file uploads to unintended locations on the server.

## Affected packages

- PyPI `gradio` < 4.19.2 → fixed: 4.19.2

## Affected products (CVE record)

- gradio-app gradio-app/gradio: unspecified < 4.19.2

## Severity

- @huntr_ai CVSS 3.0: 7.5 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub CVSS 4.0: 9.2 `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact partial .
- FIRST EPSS (model of 2026-10-21): 85.39% probability of exploitation activity in the next 30 days; percentile 99.7.

## Sources

- [GitHub Advisory GHSA-m842-4qm8-7gpq](https://github.com/advisories/GHSA-m842-4qm8-7gpq)
- [CVE.org record CVE-2024-1728](https://www.cve.org/CVERecord?id=CVE-2024-1728)
- [NVD entry CVE-2024-1728](https://nvd.nist.gov/vuln/detail/CVE-2024-1728)
- [huntr.com](https://huntr.com/bounties/9bb33b71-7995-425d-91cc-2c2a2f2a068a)
- [github.com](https://github.com/gradio-app/gradio/commit/16fbe9cd0cffa9f2a824a0165beb43446114eec7)
- [github.com](https://github.com/gradio-app/gradio/security/advisories/GHSA-m842-4qm8-7gpq)

---
Source page: https://erroneo.us/security/cve/CVE-2024-1728/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
