CVE-2025-23042

High

Description

Gradio is an open-source Python package that allows quick building of demos and web application for machine learning models, API, or any arbitrary Python function. Gradio's Access Control List (ACL) for file paths can be bypassed by altering the letter case of a blocked file or directory path. This vulnerability arises due to the lack of case normalization in the file path validation logic. On case-insensitive file systems, such as those used by Windows and macOS, this flaw enables attackers to circumvent security restrictions and access sensitive files that should be protected. This issue can lead to unauthorized data access, exposing sensitive information and undermining the integrity of Gradio's security model. Given Gradio's popularity for building web applications, particularly in machine learning and AI, this vulnerability may pose a substantial threat if exploited in production environments. This issue has been addressed in release version 5.6.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.

SeverityHigh
CVSS7.5
Exploit probability—
ProductGradio
PublishedJan 14, 2025
First seenJan 14, 2025
Weakness typeCWE-285CWE-285

How to fix

Update
  • gradio_project gradio5.6.0 or later
  • gradio5.11.0, 5.6.0 or later

Affected products

ProductAffected versionsFixed in
gradio_project gradiov < 5.6.05.6.0
gradioPyPIv < 5.11.0, v < 5.6.05.11.0, 5.6.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.