# CVE-2026-39244: adm-zip: Crafted ZIP file triggers 4GB memory allocation

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 55% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-10T00:00:00.000Z
- Modified: 2026-09-10T03:51:12.573Z
- Also known as: GHSA-xcpc-8h2w-3j85
- Weaknesses: CWE-400, CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- adm-zip (npm): before 0.6.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/cthackers/adm-zip/issues/568> (exploit, web)
- <https://github.com/cthackers/adm-zip> (package)
- <https://www.npmjs.com/package/adm-zip>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39244> (advisory)
- <https://github.com/cthackers/adm-zip/commit/2450dcf417aa29df49270237d18c5245794da3e2> (web)
- <https://github.com/cthackers/adm-zip/releases> (web)

## Sources

- CVE List: [CVE-2026-39244](https://www.cve.org/CVERecord?id=CVE-2026-39244), CVE Terms of Use, modified 2026-07-10
- GitHub Advisory Database: [GHSA-xcpc-8h2w-3j85](https://github.com/advisories/GHSA-xcpc-8h2w-3j85), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-39244](https://nvd.nist.gov/vuln/detail/CVE-2026-39244), Public domain, modified 2026-07-10

---

Page: https://cve.day/CVE-2026-39244 · Whole record: https://cve.day/CVE-2026-39244.json · Rebuilt by cve.day 2026-11-25T22:59:27.644Z
