PT-2023-31833 · Gradio · Gradio

Nvn1729

+1

·

Published

2023-12-21

·

Updated

2024-09-24

·

CVE-2023-51449

CVSS v3.1

8.6

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Name of the Vulnerable Software and Affected Versions Gradio versions prior to 4.11.0
Description The issue concerns a vulnerability in the /file route of Gradio, making it susceptible to file traversal attacks. An attacker could access arbitrary files on a machine running a Gradio app with a public URL if they knew the path of files to look for. This was possible through programmatic tools such as curl with the --pass-as-is flag, but not through regular URLs passed into a browser. Additionally, the /file route was vulnerable to Server-Side Request Forgery (SSRF) attacks.
Recommendations For Gradio versions prior to 4.11.0, update to version 4.11.0 to resolve the issue. As a temporary workaround, consider restricting access to the /file route to minimize the risk of exploitation. Avoid using the /file route in Gradio apps until the issue is resolved.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2023-51449
GHSA-6QM2-WPXQ-7QH2
PYSEC-2023-249

Affected Products

Gradio