# CVE-2024-1727: CSRF Vulnerability in gradio-app/gradio

- Severity: Medium 4.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- 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.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-21T19:57:39.129Z
- Modified: 2026-09-10T03:50:13.188Z
- Also known as: GHSA-48cq-79qq-6f7x, PYSEC-2026-1409
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

A Cross-Site Request Forgery (CSRF) vulnerability in gradio-app/gradio allows attackers to upload multiple large files to a victim's system if they are running Gradio locally. By crafting a malicious HTML page that triggers an unauthorized file upload to the victim's server, an attacker can deplete the system's disk space, potentially leading to a denial of service. This issue affects the file upload functionality as implemented in gradio/routes.py.

(As written by CVE List.)

## Affected

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

## Every score

- @huntr_ai: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`

## References

- <https://huntr.com/bounties/a94d55fb-0770-4cbe-9b20-97a978a2ffff> (exploit, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/commit/84802ee6a4806c25287344dce581f9548a99834a> (fix, patch, web)
- <https://github.com/gradio-app/gradio/security/advisories/GHSA-48cq-79qq-6f7x> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1727> (advisory)
- <https://github.com/gradio-app/gradio/pull/7503> (web)
- <https://github.com/gradio-app/gradio> (package)
- <https://pypi.org/project/gradio> (package)
- <https://github.com/advisories/GHSA-48cq-79qq-6f7x> (advisory)

## Sources

- CVE List: [CVE-2024-1727](https://www.cve.org/CVERecord?id=CVE-2024-1727), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-48cq-79qq-6f7x](https://github.com/advisories/GHSA-48cq-79qq-6f7x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-1727](https://nvd.nist.gov/vuln/detail/CVE-2024-1727), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1409](https://osv.dev/vulnerability/PYSEC-2026-1409), CC-BY-4.0, modified 2026-07-07

---

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