# CVE-2024-51751: Arbitrary file read with File and UploadButton components in Gradio

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/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): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-06T16:29:57.000Z
- Modified: 2026-06-17T08:06:15.817Z
- Also known as: GHSA-rhm9-gp5p-5248, PYSEC-2024-275
- Weaknesses: CWE-22, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Gradio is an open-source Python package designed to enable quick builds of a demo or web application. If File or UploadButton components are used as a part of Gradio application to preview file content, an attacker with access to the application might abuse these components to read arbitrary files from the application server. This issue has been addressed in release version 5.5.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- gradio-app gradio: >= 5.0.0, < 5.5.0
- gradio_project gradio: from 5.0.0 before 5.5.0
- gradio (PyPI): from 5.0.0 before 5.5.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 0.0 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248> (exploit, evidence, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-51751> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-275.yaml> (web)

## Sources

- CVE List: [CVE-2024-51751](https://www.cve.org/CVERecord?id=CVE-2024-51751), CVE Terms of Use, modified 2024-11-06
- GitHub Advisory Database: [GHSA-rhm9-gp5p-5248](https://github.com/advisories/GHSA-rhm9-gp5p-5248), CC-BY-4.0, modified 2026-06-05
- NVD: [CVE-2024-51751](https://nvd.nist.gov/vuln/detail/CVE-2024-51751), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-275](https://osv.dev/vulnerability/PYSEC-2024-275), CC-BY-4.0, modified 2026-05-20

---

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