CVE-2026-39244: adm-zip Crafted ZIP File Triggers 4GB Vulnerability
HIGHCVE-2026-39244 is a HIGH (CVSS 7.5) crafted zip file triggers 4gb vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting adm-zip libraries in the npm ecosystem. The issue involves crafted zip file triggers 4gb memory allocation. Remediation is available by upgrading affected packages to version 0.6.0.
CVE-2026-39244 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-39244
To remediate this vulnerability, upgrade all affected adm-zip dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install adm-zip@0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls adm-zip
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-39244, inspect your project dependencies using npm:
npm ls adm-zip
Analyze the terminal output to locate any version of adm-zip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: The npm ls adm-zip command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In adm-zip, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-39244 Affected adm-zip Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
adm-zip
|
npm |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is CVE-2026-39244?
Which adm-zip versions are affected?
What version fixes CVE-2026-39244?
Is adm-zip affected?
What is the CVSS score of CVE-2026-39244?
What CWE is associated with CVE-2026-39244?
How can I check npm dependencies for CVE-2026-39244?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xcpc-8h2w-3j85",
"modified" : "2026-07-17T21:50:08Z",
"published" : "2026-07-10T18:32:19Z",
"aliases" : [ "CVE-2026-39244" ],
"summary" : "adm-zip: Crafted ZIP file triggers 4GB memory allocation",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "adm-zip"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-39244"
}, {
"type" : "WEB",
"url" : "https://github.com/cthackers/adm-zip/issues/568"
}, {
"type" : "WEB",
"url" : "https://github.com/cthackers/adm-zip/commit/2450dcf417aa29df49270237d18c5245794da3e2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cthackers/adm-zip"
}, {
"type" : "WEB",
"url" : "https://github.com/cthackers/adm-zip/releases"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-789" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-17T21:50:08Z",
"nvd_published_at" : "2026-07-10T17:16:57Z"
}
}