Improper Handling of Case Sensitivity Affecting gradio package, versions [,5.11.0)


Severity

Recommended
0.0
high
0
10

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

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 IDSNYK-PYTHON-GRADIO-8623546
  • published15 Jan 2025
  • disclosed14 Jan 2025
  • creditsuperboy-zjc, jackfromeast

Introduced: 14 Jan 2025

NewCVE-2025-23042  (opens in a new tab)
CWE-178  (opens in a new tab)

How to fix?

Upgrade gradio to version 5.11.0 or higher.

Overview

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

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity due to improper case normalization in the file path validation logic through the blocked_paths parameter of the is_allowed_file function. An attacker can gain unauthorized access to sensitive files by altering the letter case of a blocked file or directory path.

Note:

This is only exploitable on case-insensitive file systems, such as Windows and macOS.

CVSS Scores

version 4.0
version 3.1