CVE-2024-12217
JSON

5.3medium

Path Traversal in gradio-app/gradio

Severity
5.3medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.77% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-prpg-p95c-32fvPYSEC-2026-1418

Description

A vulnerability in the gradio-app/gradio repository, version git 67e4044, allows for path traversal on Windows OS. The implementation of the blocked_path functionality, which is intended to disallow users from reading certain files, is flawed. Specifically, while the application correctly blocks access to paths like 'C:/tmp/secret.txt', it fails to block access when using NTFS Alternate Data Streams (ADS) syntax, such as 'C:/tmp/secret.txt::$DATA'. This flaw can lead to unauthorized reading of blocked file paths.

Affected

Product or packageVersionsReported by
gradio-app gradio-app/gradiofrom unspecified up to latestCVE List
gradio (PyPI)up to 5.0.1GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
PyPA Advisory Database5.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-22CWE-41

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

A vulnerability in the gradio-app/gradio repository, version git 67e4044, allows for path traversal on Windows OS. The implementation of the blocked_path functionality, which is intended to disallow users from reading certain files, is flawed. Specifically, while the application correctly blocks access to paths like 'C:/tmp/secret.txt', it fails to block access when using NTFS Alternate Data Streams (ADS) syntax, such as 'C:/tmp/secret.txt::$DATA'. This flaw can lead to unauthorized reading of blocked file paths.

NVD (es)

Una vulnerabilidad en el repositorio gradio-app/gradio, versión git 67e4044, permite path traversal en el sistema operativo Windows. La implementación de la función "blocked_path", cuyo objetivo es impedir que los usuarios lean ciertos archivos, es defectuoso. En concreto, si bien la aplicación bloquea correctamente el acceso a rutas como "C:/tmp/secret.txt", no lo bloquea al usar la sintaxis de flujos de datos alternativos (ADS) de NTFS, como "C:/tmp/secret.txt::$DATA". Este fallo puede provocar la lectura no autorizada de rutas de archivos bloqueadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-12217 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-prpg-p95c-32fv changed 2026-07-07CC-BY-4.0
NVDCVE-2024-12217 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1418 changed 2026-07-07CC-BY-4.0