CVE-2025-66645CWE-22path-traversal

CVE-2025-66645

High · published December 10, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
65.9
In the wild
Unconfirmed
What it is

⚡ A sneaky directory traversal vulnerability lets attackers read any file on your server, simply by using the App.add_media_files() function — how's that for an unwelcome surprise?! 🔍 Think of it like a restaurant where the chef, without a second glance, lets anyone into the pantry full of top-secret recipes just because they were handed a menu — a huge risk for everything inside! If an attacker exploits this flaw, they could access sensitive files on your server, potentially revealing private information or even application secrets. This breach could lead to unauthorized access and serious reputational damage, putting your system and users at significant risk!

Put simply

Think of it like a restaurant where the chef, without a second glance, lets anyone into the pantry full of top-secret recipes just because they were handed a menu — a huge risk for everything inside! This directory traversal vulnerability in NiceGUI versions 3.3.1 and below allows remote attackers to manipulate file paths, gaining access to files on the server that should remain hidden.

What to do

If an attacker exploits this flaw, they could access sensitive files on your server, potentially revealing private information or even application secrets. This breach could lead to unauthorized access and serious reputational damage, putting your system and users at significant risk! Immediately upgrade to NiceGUI version 3.4.0 to ensure protection against this vulnerability. Additionally, review your application logic to restrict unauthorized access and validate file paths properly. You’ve got this! Stay safe by taking these steps to lock things down. 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.01120 · 65.9th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2025-12-10T03:16Z
Affected products (1)
ProductVersionsFixed in
zauberzeug/nicegui< 3.4.03.4.0
References (3)
EPSS history
Timeline
  • 09 DEC 21:41Z
    NiceGUI Path Traversal Vulnerability in app.add_media_files() Allows Arbitrary File Reading
    cvelistv5