# CVE-2024-1728: Local File Inclusion in gradio-app/gradio

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 85.4%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-10T17:07:56.020Z
- Modified: 2026-10-27T16:45:03.549Z
- Also known as: GHSA-m842-4qm8-7gpq, PYSEC-2026-345
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- gradio-app gradio-app/gradio: from unspecified before 4.19.2
- gradio_project gradio: -; from 4.18.0 before 4.19.2
- gradio (PyPI): before 4.19.2

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 8.1 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://huntr.com/bounties/9bb33b71-7995-425d-91cc-2c2a2f2a068a> (exploit, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/commit/16fbe9cd0cffa9f2a824a0165beb43446114eec7> (patch, web)
- <https://github.com/gradio-app/gradio/security/advisories/GHSA-m842-4qm8-7gpq> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1728> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-345.yaml> (web)
- <https://pypi.org/project/gradio> (package, web)
- <https://github.com/advisories/GHSA-m842-4qm8-7gpq> (advisory)

## Sources

- CVE List: [CVE-2024-1728](https://www.cve.org/CVERecord?id=CVE-2024-1728), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-m842-4qm8-7gpq](https://github.com/advisories/GHSA-m842-4qm8-7gpq), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2024-1728](https://nvd.nist.gov/vuln/detail/CVE-2024-1728), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-345](https://osv.dev/vulnerability/PYSEC-2026-345), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-1728 · Whole record: https://cve.day/CVE-2024-1728.json · Rebuilt by cve.day 2026-11-25T22:58:39.055Z
