Path Equivalence Affecting gradio package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Path Equivalence vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-GRADIO-9510952
  • published23 Mar 2025
  • disclosed20 Mar 2025
  • creditoicu0619

Introduced: 20 Mar 2025

NewCVE-2024-12217  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-41  (opens in a new tab)

How to fix?

There is no fixed version for gradio.

Overview

gradio is a Python library for easily interacting with trained machine learning models

Affected versions of this package are vulnerable to Path Equivalence due to the blocked_path() function only blocking standard pathnames. On Windows systems, an attacker can read unauthorized files by using NTFS Alternate Data Streams syntax to bypass path restrictions.

PoC

If c:/tmp/secret.txt is inaccessible but its containing directory c:/tmp is accessible:

http://127.0.0.1:7860/file=c:/tmp/secret.txt::$DATA

CVSS Base Scores

version 4.0
version 3.1