INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-12217

Gradio Path Traversal vulnerability

CVE-2024-12217 ยท 2025-03-20 moderate

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
gradio (PyPI)
Gets past
Path restriction
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.7% chance of exploitation in 30 days

How it works, in short

The gradio blocked-path check fails to match NTFS alternate data stream syntax on Windows, so blocked files can still be read. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.