NiceGUI
NiceGUI's unvalidated chunk size parameter in media routes can cause memory exhaustion
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.9.0
Fixed in 3.9.0
Mitigation
Upgrade nicegui to 3.9.0 or later.
References
- Vendor advisory github.com/zauberzeug/nicegui/security/advisor…
- Patch github.com/zauberzeug/nicegui/commit/9026962b8…
- Release notes github.com/zauberzeug/nicegui/releases/tag/v3.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.