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: 6.3 [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]
CVE-ID: CVE-2024-47164
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Gradio

How to mitigate CVE-2024-47164

Install security update from vendor's website.

Gradio - update to 5.0.0

External References

Related Security Bulletins