---
id: CVE-2024-12217
aliases:
  - GHSA-prpg-p95c-32fv
  - PYSEC-2026-1418
title: Gradio Path Traversal vulnerability
summary: Gradio Path Traversal vulnerability
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - gradio <= 5.0.1
published: '2025-03-20'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-prpg-p95c-32fv'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-12217'
  - url: 'https://github.com/gradio-app/gradio'
  - url: >-
      https://github.com/gradio-app/gradio/blob/67e4044c9ca8358eceeb1fa72fa415df03397d20/gradio/utils.py#L1061-L1074
  - url: 'https://huntr.com/bounties/0439bf3d-cb38-43a5-8314-0fadf85cc5a0'
tags:
  - osv
  - pip
epss: 0.00685
epssPercentile: 0.50635
ingestedAt: '2026-07-08T18:25:52.010Z'
---

## Overview

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 packages

- `gradio <= 5.0.1`

## Remediation

Refer to the advisory for the patched release.
