Input validation error in Gradio - CVE-2024-51751

 

Input validation error in Gradio - CVE-2024-51751

Published: November 6, 2024 / Updated: April 28, 2026


Vulnerability identifier: #VU128296
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2024-51751
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Gradio
Affected software:
Gradio

Detailed vulnerability description

The vulnerability allows a remote user to disclose sensitive information.

The vulnerability exists due to improper input validation in File and UploadButton components when handling crafted file path data in requests. A remote user can send a specially crafted request to disclose sensitive information.

Only applications that use these components to preview or echo uploaded file content are vulnerable.


How to mitigate CVE-2024-51751

Install security update from vendor's website.

Sources