Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-66645: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zauberzeug nicegui

0
High
VulnerabilityCVE-2025-66645cvecve-2025-66645cwe-22
Published: Tue Dec 09 2025 (12/09/2025, 21:41:32 UTC)
Source: CVE Database V5
Vendor/Project: zauberzeug
Product: nicegui

Description

NiceGUI is a Python-based UI framework. Versions 3.3.1 and below are vulnerable to directory traversal through the App.add_media_files() function, which allows a remote attacker to read arbitrary files on the server filesystem. This issue is fixed in version 3.4.0.

AI-Powered Analysis

AILast updated: 12/09/2025, 21:53:00 UTC

Technical Analysis

CVE-2025-66645 is a path traversal vulnerability classified under CWE-22 found in the NiceGUI Python UI framework, specifically in versions 3.3.1 and earlier. The vulnerability exists in the App.add_media_files() function, which fails to properly limit pathnames to a restricted directory. This flaw allows remote attackers to craft specially designed requests that traverse directories on the server filesystem, enabling unauthorized reading of arbitrary files. The attack vector is network-based, requiring no authentication or user interaction, making exploitation straightforward. The vulnerability compromises confidentiality by exposing potentially sensitive files, but does not affect integrity or availability. The issue was publicly disclosed on December 9, 2025, and fixed in version 3.4.0 of NiceGUI. Although no known exploits are currently in the wild, the ease of exploitation and high impact make it a critical risk for affected deployments. Organizations using NiceGUI in web-facing or internal applications should consider this a priority vulnerability. The lack of integrity or availability impact means attackers cannot modify or disrupt services but can gain sensitive information, which could lead to further attacks or data breaches.

Potential Impact

For European organizations, the primary impact is the unauthorized disclosure of sensitive information stored on servers running vulnerable NiceGUI versions. This can include configuration files, credentials, personal data, or intellectual property, leading to data breaches and compliance violations under GDPR. The vulnerability's remote, unauthenticated nature increases the risk of widespread exploitation, especially in internet-facing applications. Confidentiality loss can facilitate further attacks such as privilege escalation or lateral movement within networks. Organizations in sectors like finance, healthcare, and government, which often handle sensitive data, face heightened risks. Additionally, reputational damage and regulatory penalties could result from exploitation. Since NiceGUI is a Python-based framework, organizations leveraging Python for rapid UI development are particularly vulnerable. The absence of integrity or availability impact limits the threat to data exposure rather than service disruption, but the severity remains high due to the sensitivity of exposed data.

Mitigation Recommendations

The primary mitigation is to upgrade all NiceGUI deployments to version 3.4.0 or later, where the vulnerability is patched. Organizations should audit their use of the App.add_media_files() function and ensure no legacy versions remain in production or development environments. Implement strict access controls and network segmentation to limit exposure of NiceGUI applications, especially those accessible from the internet. Employ web application firewalls (WAFs) with custom rules to detect and block path traversal attempts targeting media file endpoints. Conduct thorough file system permission reviews to minimize sensitive file exposure even if traversal occurs. Monitor logs for suspicious access patterns indicative of path traversal exploitation attempts. Educate developers on secure coding practices to avoid similar directory traversal flaws. Finally, integrate vulnerability scanning and automated patch management to promptly address future vulnerabilities in third-party frameworks.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-12-05T20:23:19.595Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69389a31d4eb7e5ad778aab6

Added to database: 12/9/2025, 9:52:49 PM

Last enriched: 12/9/2025, 9:53:00 PM

Last updated: 12/10/2025, 11:32:27 PM

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats