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 package | Versions | Reported by |
|---|---|---|
| gradio-app gradio-app/gradio | from unspecified up to latest | CVE List |
| gradio (PyPI) | up to 5.0.1 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| @huntr_ai | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| PyPA Advisory Database | 5.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-12217 changed 2025-03-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-prpg-p95c-32fv changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2024-12217 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1418 changed 2026-07-07 | CC-BY-4.0 |