Improper access control in Gradio - CVE-2025-23042

 

Improper access control in Gradio - CVE-2025-23042

Published: January 14, 2025 / Updated: April 28, 2026


Vulnerability identifier: #VU128297
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-23042
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper access control in the blocked_paths file path validation logic when handling file access requests with case-altered paths on case-insensitive file systems. A remote attacker can request a specially crafted file path to disclose sensitive information.

Only deployments on case-insensitive file systems, such as Windows and macOS, are affected.


Affected software

Gradio

How to mitigate CVE-2025-23042

Install security update from vendor's website.

Gradio - update to 5.6.0

External References

Related Security Bulletins