ghsa-prpg-p95c-32fv
Vulnerability from github
Published
2025-03-20 12:32
Modified
2025-03-21 17:12
Severity ?
Summary
Gradio Path Traversal vulnerability
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.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "gradio" }, "ranges": [ { "events": [ { "introduced": "0" }, { "last_affected": "5.0.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-12217" ], "database_specific": { "cwe_ids": [ "CWE-22", "CWE-41" ], "github_reviewed": true, "github_reviewed_at": "2025-03-21T17:12:10Z", "nvd_published_at": "2025-03-20T10:15:27Z", "severity": "MODERATE" }, "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 \u0027C:/tmp/secret.txt\u0027, it fails to block access when using NTFS Alternate Data Streams (ADS) syntax, such as \u0027C:/tmp/secret.txt::$DATA\u0027. This flaw can lead to unauthorized reading of blocked file paths.", "id": "GHSA-prpg-p95c-32fv", "modified": "2025-03-21T17:12:10Z", "published": "2025-03-20T12:32:42Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-12217" }, { "type": "PACKAGE", "url": "https://github.com/gradio-app/gradio" }, { "type": "WEB", "url": "https://github.com/gradio-app/gradio/blob/67e4044c9ca8358eceeb1fa72fa415df03397d20/gradio/utils.py#L1061-L1074" }, { "type": "WEB", "url": "https://huntr.com/bounties/0439bf3d-cb38-43a5-8314-0fadf85cc5a0" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Gradio Path Traversal vulnerability" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.