GitHub Advisoryadvisory · PyPI

GHSA-mwc7-64wg-pgvj NiceGUI allows potential access to local file system

HIGH Published 2024-04-12 Modified 2024-04-15 Official page ↗
Aliases
CVE-2024-32005
Ecosystem
PyPI
Packages
nicegui
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
Weaknesses
CWE-22, CWE-23
Reviewed
2024-04-12

Affected packages

• PyPI nicegui: >= 1.4.6, < 1.4.21 → fixed in 1.4.21

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.

Related

Alias · CVE (1)

  • CVE-2024-32005 NiceGUI is an easy-to-use, Python-based UI framework. vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-23 Relative Path Traversal weakness

References