{"id":"CVE-2026-54616","state":"PUBLISHED","title":"NanaZip: Heap out-of-bounds read in NanaZip SquashFS LZ4 decompressor via unchecked negative return value","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.","publishedAt":"2026-08-20T16:11:54.192Z","updatedAt":"2026-08-20T19:52:07.850Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["M2Team NanaZip"],"affected":[{"vendor":"M2Team","product":"NanaZip","versions":[{"version":">= 1.0.88.0, < 6.0.1698.0","status":"affected"},{"version":">= 6.5.1638.0, < 6.5.1742.0","status":"affected"}]}],"references":["https://github.com/M2Team/NanaZip/security/advisories/GHSA-95x5-qvvm-hmfp","https://github.com/M2Team/NanaZip/commit/733e8570d2ba96c3e52aab44f5fd886775d5952f","https://github.com/M2Team/NanaZip/commit/ce0322a1932e16a53e4a13e48bc61804c7826956","https://github.com/M2Team/NanaZip/releases/tag/6.0.1698.0","https://github.com/M2Team/NanaZip/releases/tag/6.5.1742.0"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54616.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54616","state":"PUBLISHED","datePublished":"2026-08-20T16:11:54.192Z","dateUpdated":"2026-08-20T19:52:07.850Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-15T20:07:02.184Z"},"containers":{"cna":{"title":"NanaZip: Heap out-of-bounds read in NanaZip SquashFS LZ4 decompressor via unchecked negative return value","descriptions":[{"lang":"en","value":"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":[{"vendor":"M2Team","product":"NanaZip","versions":[{"version":">= 1.0.88.0, < 6.0.1698.0","status":"affected"},{"version":">= 6.5.1638.0, < 6.5.1742.0","status":"affected"}]}],"references":[{"url":"https://github.com/M2Team/NanaZip/security/advisories/GHSA-95x5-qvvm-hmfp","name":"https://github.com/M2Team/NanaZip/security/advisories/GHSA-95x5-qvvm-hmfp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/M2Team/NanaZip/commit/733e8570d2ba96c3e52aab44f5fd886775d5952f","name":"https://github.com/M2Team/NanaZip/commit/733e8570d2ba96c3e52aab44f5fd886775d5952f","tags":["x_refsource_MISC"]},{"url":"https://github.com/M2Team/NanaZip/commit/ce0322a1932e16a53e4a13e48bc61804c7826956","name":"https://github.com/M2Team/NanaZip/commit/ce0322a1932e16a53e4a13e48bc61804c7826956","tags":["x_refsource_MISC"]},{"url":"https://github.com/M2Team/NanaZip/releases/tag/6.0.1698.0","name":"https://github.com/M2Team/NanaZip/releases/tag/6.0.1698.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/M2Team/NanaZip/releases/tag/6.5.1742.0","name":"https://github.com/M2Team/NanaZip/releases/tag/6.5.1742.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"CWE-125: Out-of-bounds Read","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-20T16:11:54.192Z"},"source":{"advisory":"GHSA-95x5-qvvm-hmfp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/M2Team/NanaZip/security/advisories/GHSA-95x5-qvvm-hmfp","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-20T19:52:01.141088Z","id":"CVE-2026-54616","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-20T19:52:07.850Z"}}]}}}