CVE-2025-23042 Gradio Blocked Path ACL Bypass Vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions | 5.11.0 |
gradio PyPI | All versions | 5.11.0 |
gradio PyPI | All versions | 5.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.
Other vulnerabilities in Gradio Project Gradio
- CVE-2024-39236 Withdrawn Advisory: Gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py
- CVE-2023-6572 Command Injection in gradio-app/gradio
- CVE-2022-24770 Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
- CVE-2026-49119 Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
- CVE-2024-4325 Server-Side Request Forgery (SSRF) in gradio-app/gradio
Sources
Also known as GHSA-j2jg-fq62-7c3h, PYSEC-2025-118.