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

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2024-04-12T20:38:51.147Z
- Modified: 2026-09-10T03:50:12.883Z
- Also known as: GHSA-mwc7-64wg-pgvj, PYSEC-2026-1704
- Weaknesses: CWE-22, CWE-23
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zauberzeug nicegui: >= 1.4.6, < 1.4.21; from 1.4.6 before 1.4.21
- nicegui (PyPI): from 1.4.6 before 1.4.21

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L`

## References

- <https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mwc7-64wg-pgvj> (web)
- <https://github.com/zauberzeug/nicegui/commit/ed12eb14f2a6c48b388a05c04b3c5a107ea9d330> (web)
- <https://huntr.com/bounties/29ec621a-bd69-4225-ab0f-5bb8a1d10c67> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32005> (advisory)
- <https://github.com/zauberzeug/nicegui> (package)
- <https://pypi.org/project/nicegui> (package)
- <https://github.com/advisories/GHSA-mwc7-64wg-pgvj> (advisory)

## Sources

- CVE List: [CVE-2024-32005](https://www.cve.org/CVERecord?id=CVE-2024-32005), CVE Terms of Use, modified 2024-09-06
- GitHub Advisory Database: [GHSA-mwc7-64wg-pgvj](https://github.com/advisories/GHSA-mwc7-64wg-pgvj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-32005](https://nvd.nist.gov/vuln/detail/CVE-2024-32005), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1704](https://osv.dev/vulnerability/PYSEC-2026-1704), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-32005 · Whole record: https://cve.day/CVE-2024-32005.json · Rebuilt by cve.day 2026-11-25T22:58:39.161Z
