Path traversal in Gradio - CVE-2024-47164

 

Path traversal in Gradio - CVE-2024-47164

Published: October 10, 2024 / Updated: April 28, 2026


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

Detailed vulnerability description

The vulnerability allows a remote attacker to access restricted files.

The vulnerability exists due to path traversal in the is_in_or_equal function when handling file paths containing parent directory sequences. A remote attacker can supply a specially crafted path to access restricted files.

This primarily affects deployments relying on blocklist or directory access validation, particularly when handling file uploads.


How to mitigate CVE-2024-47164

Install security update from vendor's website.

Sources