CVE-2026-39244
adm-zip before 0.5.18 is vulnerable to denial of service via a …
adm-zip before 0.5.18 is vulnerable to denial of service via a crafted ZIP file with a manipulated uncompressed size header field. In zipEntry.js line 103, Buffer.alloc(_centralHeader.size) allocates memory based on the declared uncompressed size from the ZIP central directory header without validating it against the actual compressed data size or imposing any upper bound. The size value is read directly from the binary header at entryHeader.js line 266 with no bounds check. An attacker can craft a ~120-byte ZIP file that declares ~4GB uncompressed size, causing a memory allocation amplification ratio of over 33 million to 1. The allocation occurs before CRC validation, so the malicious payload cannot be rejected early. All extraction and read methods are affected: readFile(), readAsText(), extractEntryTo(), extractAllTo(), extractAllToAsync(), test(), and entry.getData(). Any application accepting untrusted ZIP files via adm-zip is vulnerable to immediate process crash.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/cthackers/adm-zip
- github.com/cthackers/adm-zip/issues/568
- www.npmjs.com/package/adm-zip
- nvd.nist.gov/vuln/detail/CVE-2026-39244
- github.com/cthackers/adm-zip/commit/2450dcf417aa29df49270237d18c5245794da3e2
- github.com/cthackers/adm-zip/releases
- github.com/advisories/GHSA-xcpc-8h2w-3j85
- nvd.nist.gov/vuln/detail/CVE-2026-39244
- cve.org/CVERecord?id=CVE-2026-39244
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.