PT-2024-18256 · Gradio · Gradio

Published

2024-04-10

·

Updated

2025-07-30

·

CVE-2024-1728

CVSS v4.0

9.2

Critical

VectorAV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions gradio-app/gradio (affected versions not specified)
Description The issue is a local file inclusion vulnerability due to improper validation of user-supplied input in the UploadButton component. Attackers can exploit this vulnerability to read arbitrary files on the filesystem, such as private SSH keys, by manipulating the file path in the request to the "/queue/join" endpoint. This could potentially lead to remote code execution. The vulnerability is present in the handling of file upload paths, allowing attackers to redirect file uploads to unintended locations on the server.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

RCE

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2024-1728
GHSA-3F95-MXQ2-2F63
GHSA-M842-4QM8-7GPQ

Affected Products

Gradio