7.1high
NanaZip: Heap out-of-bounds read in NanaZip SquashFS LZ4 decompressor via unchecked negative return value
- Severity
- 7.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
NanaZip is the 7-Zip derivative intended for the modern Windows experience. From version 1.0.88.0 until stable version 6.0.1698.0 and preview version 6.5.1742.0, the Lz4Decode function in NanaZip.Core/SevenZip/CPP/7zip/Archive/SquashfsHandler.cpp rejects only a zero return from LZ4_decompress_safe even though malformed input produces a negative error value. The negative int is converted to the unsigned SizeT destLen and then truncated into outBufWasWrittenSize, causing ReadBlock to trust an attacker-inflated _cachedUnpackBlockSize. During fragment extraction, an attacker-controlled inode Offset can make memcpy read beyond the _cachedBlock heap allocation and place adjacent heap contents in the extracted file, or crash the process. This issue is fixed in stable version 6.0.1698.0 and preview version 6.5.1742.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| M2Team NanaZip | >= 1.0.88.0, < 6.0.1698.0, >= 6.5.1638.0, < 6.5.1742.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
NanaZip is the 7-Zip derivative intended for the modern Windows experience. From version 1.0.88.0 until stable version 6.0.1698.0 and preview version 6.5.1742.0, the Lz4Decode function in NanaZip.Core/SevenZip/CPP/7zip/Archive/SquashfsHandler.cpp rejects only a zero return from LZ4_decompress_safe even though malformed input produces a negative error value. The negative int is converted to the unsigned SizeT destLen and then truncated into outBufWasWrittenSize, causing ReadBlock to trust an attacker-inflated _cachedUnpackBlockSize. During fragment extraction, an attacker-controlled inode Offset can make memcpy read beyond the _cachedBlock heap allocation and place adjacent heap contents in the extracted file, or crash the process. This issue is fixed in stable version 6.0.1698.0 and preview version 6.5.1742.0.
NVD (es)
NanaZip es el derivado de 7-Zip destinado a la experiencia moderna de Windows. Desde la versión 1.0.88.0 hasta la versión estable 6.0.1698.0 y la versión preliminar 6.5.1742.0, la función Lz4Decode en NanaZip.Core/SevenZip/CPP/7zip/Archive/SquashfsHandler.cpp rechaza solo un retorno cero de LZ4_decompress_safe a pesar de que una entrada malformada produce un valor de error negativo. El entero negativo se convierte al SizeT sin signo destLen y luego se trunca en outBufWasWrittenSize, haciendo que ReadBlock confíe en un _cachedUnpackBlockSize inflado por el atacante. Durante la extracción de fragmentos, un Offset de inodo controlado por el atacante puede hacer que memcpy lea más allá de la asignación de montón _cachedBlock y coloque contenidos de montón adyacentes en el archivo extraído, o bloquee el proceso. Este problema se corrige en la versión estable 6.0.1698.0 y la versión preliminar 6.5.1742.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54616 changed 2026-08-20 | CVE Terms of Use |
| NVD | CVE-2026-54616 changed 2026-10-18 | Public domain |