CVE-2025-23042
Gradio vulnerability analysis and mitigation

Overview

Gradio, an open-source Python package for building machine learning demos and web applications, was found to contain a critical vulnerability (CVE-2025-23042) discovered on January 14, 2025. The vulnerability allows bypassing the Access Control List (ACL) for file paths by manipulating the letter case of blocked file or directory paths. This security flaw affects Gradio versions prior to 5.6.0 and primarily impacts systems with case-insensitive file systems, such as Windows and macOS (GitHub Advisory, Security Online).

Technical details

The vulnerability stems from the lack of case normalization in Gradio's file path validation logic, specifically in the is_allowed_file function. The function fails to account for case variations in paths on case-insensitive file systems, allowing attackers to bypass ACL restrictions by simply changing the case of file paths. The vulnerability has received a CVSS score of 9.1, indicating its critical severity. The technical implementation relies on the is_in_or_equal function to determine file access permissions, but this logic fails to handle case variations effectively (GitHub Advisory).

Impact

The vulnerability's impact is significant, particularly in production environments. It enables unauthorized access to sensitive files or directories specified in blocked_paths, potentially leading to the exposure of critical files such as configuration files, API keys, and user data. If the exposed files contain credentials, attackers could escalate their privileges or compromise the application's security model. Given Gradio's widespread use in machine learning and AI applications, this vulnerability poses a substantial threat to production environments (Security Online, GitHub Advisory).

Exploitability

The vulnerability can be exploited by altering the letter case of blocked file or directory paths. For example, a restricted file path like 'resources/admin/credential.txt' could be accessed by requesting the file as 'resources/adMin/credential.txt'. This simple case manipulation technique effectively bypasses the ACL restrictions on case-insensitive file systems (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Gradio version 5.6.0. The fix involves implementing case normalization in the path validation logic, where both the requested path and blocked paths are normalized before evaluation. Users are strongly advised to upgrade to the latest version immediately. There are no known workarounds for this vulnerability other than updating to the patched version (GitHub Advisory, Security Online).

Additional resources


SourceThis report was generated using AI

Related Gradio vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-49119HIGH8.7
  • Gradio logoGradio
  • gradio
NoYesJul 01, 2026
CVE-2026-28416HIGH8.6
  • Gradio logoGradio
  • gradio
NoYesFeb 27, 2026
CVE-2026-48545HIGH7.6
  • Gradio logoGradio
  • gradio
NoYesMay 27, 2026
CVE-2026-28415MEDIUM4.7
  • Gradio logoGradio
  • gradio
NoYesFeb 27, 2026
CVE-2026-10783LOW1.1
  • Gradio logoGradio
  • gradio
NoYesJun 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management