# CVE-2024-12217: Path Traversal in gradio-app/gradio

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:11:08.996Z
- Modified: 2026-07-07T17:57:29.255Z
- Also known as: GHSA-prpg-p95c-32fv, PYSEC-2026-1418
- Weaknesses: CWE-22, CWE-41
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- gradio-app gradio-app/gradio: from unspecified up to latest
- gradio (PyPI): up to 5.0.1

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://huntr.com/bounties/0439bf3d-cb38-43a5-8314-0fadf85cc5a0> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12217> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/gradio-app/gradio/blob/67e4044c9ca8358eceeb1fa72fa415df03397d20/gradio/utils.py#L1061-L1074> (web)
- <https://pypi.org/project/gradio> (package)
- <https://github.com/advisories/GHSA-prpg-p95c-32fv> (advisory)

## Sources

- CVE List: [CVE-2024-12217](https://www.cve.org/CVERecord?id=CVE-2024-12217), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-prpg-p95c-32fv](https://github.com/advisories/GHSA-prpg-p95c-32fv), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-12217](https://nvd.nist.gov/vuln/detail/CVE-2024-12217), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1418](https://osv.dev/vulnerability/PYSEC-2026-1418), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-12217 · Whole record: https://cve.day/CVE-2024-12217.json · Rebuilt by cve.day 2026-11-25T22:58:52.356Z
