Vulnerability · Published Apr 12, 2024 · Assigned by GitHub_M

CVE-2024-32005Local File Inclusion in NiceGUI leaflet component

High 8.2

In plain English

A high-severity path traversal in nicegui from zauberzeug. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.8%top 44.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

NiceGUI is an easy-to-use, Python-based UI framework. A local file inclusion is present in the NiceUI leaflet component when requesting resource files under the `/_nicegui/{__version__}/resources/{key}/{path:path}` route. As a result any file on the backend filesystem which the web server has access to can be read by an attacker with access to the NiceUI leaflet website. This vulnerability has been addressed in version 1.4.21. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPInicegui1.4.21GHSA-mwc7-64wg-pgvj
PyPInicegui1.4.21PYSEC-2026-1704

Affected products (as reported)

VendorProductVersions
zauberzeug nicegui >= 1.4.6, < 1.4.21

Weakness: CWE-23, CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

References