CVE-2025-23042 Gradio Blocked Path ACL Bypass Vulnerability

High 8.7 Published Updated

Attackers can bypass file access restrictions by altering path case on case-insensitive systems, exposing sensitive files in Gradio applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-23042?

CVE-2025-23042 is a high-severity path traversal vulnerability in Gradio Project Gradio, published on 14 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-285

Which versions are affected by CVE-2025-23042?

3 open source packages ship an affected version, including gradio. It affects 1 product.

PackageAffectedFixed in
gradio PyPIAll versions5.11.0
gradio PyPIAll versions5.11.0
gradio PyPIAll versions5.6.0

Products include Gradio Project Gradio.

How do I fix CVE-2025-23042?

Upgrade gradio to a fixed version for your release line: 5.11.0 or 5.6.0.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-23042 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-23042 exists.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-j2jg-fq62-7c3h, PYSEC-2025-118.

Is CVE-2025-23042 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free