CVE-2026-39244 Details
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.
A denial-of-service vulnerability exists in the adm-zip library in versions prior to 0.5.18. The issue arises when the library processes a ZIP file that has been crafted to manipulate the uncompressed size header. This manipulation leads to excessive memory allocation based on the declared uncompressed size, without any validation against the actual compressed data size or upper limit. As a result, an attacker can create a small ZIP file that causes a massive memory allocation, exceeding 4GB, before any integrity checks are performed. This vulnerability can cause applications to crash immediately when handling untrusted ZIP files.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 10, 2026CISA-ADP
Assessed Jul 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cthackers/adm-zip/issues/568 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/cthackers/adm-zip | [email protected] | ProductVendor |
| https://github.com/cthackers/adm-zip/issues/568 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.npmjs.com/package/adm-zip | [email protected] | Permission RequiredProductVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| adm-zip | <= 0.5.17 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 10, 2026 | CVE Modified | CISA-ADP |
| Jul 10, 2026 | New CVE Received | [email protected] |
Volerion