CVE-2026-33332 Details
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.
A memory exhaustion vulnerability has been identified in NiceGUI versions prior to 3.9.0. The issue arises in the 'app.add_media_file()' and 'app.add_media_files()' media routes, where a user-controlled query parameter is accepted without proper validation. This parameter influences how files are read during streaming, allowing an attacker to bypass chunked streaming and force the server to load entire files into memory at once. When large media files are involved, especially with concurrent requests, this can lead to excessive memory consumption, degraded performance, or a denial-of-service condition.
Users are advised to upgrade to NiceGUI version 3.9.0 or later, where this vulnerability has been patched. As an additional measure, access to media endpoints can be restricted or unexpected query parameters stripped at the reverse proxy layer.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zauberzeug/nicegui/commit/9026962b8c4f3f225c98b2fbc35aa6b60cb3495b | [email protected] | Patch |
| https://github.com/zauberzeug/nicegui/releases/tag/v3.9.0 | [email protected] | ProductRelease Notes |
| https://github.com/zauberzeug/nicegui/security/advisories/GHSA-w5g8-5849-vj76 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| zauberzeug nicegui | < 3.9.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 26, 2026 | Initial Analysis | [email protected] |
| Mar 24, 2026 | New CVE Received | [email protected] |