
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."