CVE-2024-1728
Local File Inclusion in gradio-app/gradio
Record summary
EIP currently links 1 Nuclei template to CVE-2024-1728.
Description
gradio-app/gradio is vulnerable to 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 issue 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.
Exploitation context
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated May 15, 2024 · Source: CVE List
Affected products and versions
3| Product | Source | Version range | Status |
|---|---|---|---|
gradio-app/gradioBrowse gradio-app / gradio-app/gradio | CVE List | Before 4.19.2 | affected |
Default status: unknown | CVE List | - | affected |
gradioBrowse PyPI / gradio | GitHub Advisory | Before 4.19.2 · Fixed in 4.19.2 | affected |
Nuclei templates
1ProjectDiscoveryHIGHGradio > 4.19.1 UploadButton - Path TraversalCVSS 7.5
gradio-app/gradio is vulnerable to a local file inclusion vulnerability due to improper validation of user-supplied input in the UploadButton component.
Impact
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 issue 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.
Remediation
Update to version 4.19.2.
Source: ProjectDiscovery