3.3low
NanaZip: Uncontrolled recursion in NanaZip Electron ASAR parser causes stack exhaustion
- Severity
- 3.3low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.15% (higher than 2% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
NanaZip is an open source file archive. From 5.0.1252.0 to before 6.0.1698.0, an uncontrolled recursion vulnerability exists in the Electron Archive (ASAR) parser in NanaZip. When opening a crafted .asar file with deeply nested JSON in the header, both nlohmann::json::parse and the handler's GetAllPaths function recurse without depth limits, exhausting the thread stack and crashing the NanaZip process. This vulnerability is fixed in 6.0.1698.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| M2Team NanaZip | >= 5.0.1250.0, < 6.0.1698.0, from 5.0.1250.0 before 6.0.1698.0 | CVE List, NVD |
All scores
| GitHub_M | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
NanaZip is an open source file archive. From 5.0.1252.0 to before 6.0.1698.0, an uncontrolled recursion vulnerability exists in the Electron Archive (ASAR) parser in NanaZip. When opening a crafted .asar file with deeply nested JSON in the header, both nlohmann::json::parse and the handler's GetAllPaths function recurse without depth limits, exhausting the thread stack and crashing the NanaZip process. This vulnerability is fixed in 6.0.1698.0.
NVD (es)
NanaZip es un archivador de archivos de código abierto. Desde 5.0.1252.0 hasta antes de 6.0.1698.0, existe una vulnerabilidad de recursión incontrolada en el analizador de Electron Archive (ASAR) en NanaZip. Al abrir un archivo .asar manipulado con JSON profundamente anidado en la cabecera, tanto nlohmann::json::parse como la función GetAllPaths del gestor recurren sin límites de profundidad, agotando la pila del hilo y provocando el fallo del proceso de NanaZip. Esta vulnerabilidad está corregida en 6.0.1698.0.
References
| https://github.com/M2Team/NanaZip/security/advisories/GHSA-4gxf-p4q6-gfrf | mitigation, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42355 changed 2026-05-13 | CVE Terms of Use |
| NVD | CVE-2026-42355 changed 2026-10-26 | Public domain |