PYSEC-2026-1409: CSRF Vulnerability in gradio-app/gradio

Published Mar 21, 2024
·
Updated

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.

Affected Software

1 affected component
gradio-app gradio

Event History

Mar 21, 2024
CVE Published
via OSV·07:57 PM
Data Sourced
via OSV·07:57 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Users running Gradio locally are exposed, particularly where the local Gradio server can receive requests triggered by a malicious HTML page opened by the user.

2

What does an attacker need to exploit it?

The attacker needs to convince a user to interact with a malicious HTML page. No attacker privileges are required, and the page can trigger unauthorized uploads to the victim's local Gradio server.

3

What is the practical impact?

An attacker can cause multiple large files to be uploaded, consuming disk space on the victim's system. This can lead to a denial of service.

4

How can teams identify potentially affected deployments?

Review locally running Gradio instances that expose file-upload functionality implemented through gradio/routes.py. The provided information does not identify affected versions or a specific detection method.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203