CVE 6.9 MEDIUM

NiceGUI’s unvalidated chunk size parameter in media routes can cause memory exhaustion_CVE-2026-33332

6.9 / 10
MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Description

NiceGUI is a Python-based UI framework. Prior to version 3.9.0, NiceGUI's app.add_media_file() and app.add_media_files() media routes accept a user-controlled query parameter that influences how files are read during streaming. The parameter is passed to the range-response implementation without validation, allowing an attacker to bypass chunked streaming and force the server to load entire files into memory at once. With large media files and concurrent requests, this can lead to excessive memory consumption, degraded performance, or denial of service. This issue has been patched in version 3.9.0.

Basic Information

ID CVE-2026-33332
Source GitHub_M
Published Mar 24, 2026 at 19:20
Modified Mar 25, 2026 at 16:19

Affected Product

Vendor zauberzeug
Product nicegui
Version < 3.9.0
Affected Versions zauberzeug nicegui < 3.9.0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.