CVE-2026-39244: n/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.
AI Analysis
Technical Summary
The adm-zip library prior to version 0.5.18 is vulnerable to a denial of service attack via a crafted ZIP file that declares an excessively large uncompressed size in its central directory header. The vulnerability exists because the code allocates memory (Buffer.alloc) based on this declared size without bounds checking or validation against the actual compressed data size. This allows an attacker to cause a memory allocation amplification of over 33 million times, leading to immediate process crashes during extraction or reading operations. The flaw affects all extraction and read methods, including readFile(), readAsText(), extractEntryTo(), extractAllTo(), extractAllToAsync(), test(), and entry.getData(). The malicious payload cannot be rejected early because allocation occurs before CRC validation.
Potential Impact
Applications using vulnerable versions of adm-zip that accept untrusted ZIP files are susceptible to denial of service via process crashes caused by excessive memory allocation. This can disrupt service availability and potentially lead to application instability or downtime. There is no indication of code execution or data corruption beyond denial of service.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted ZIP files with adm-zip versions prior to 0.5.18. Consider implementing additional input validation or sandboxing to limit impact.
CVE-2026-39244: n/a
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.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The adm-zip library prior to version 0.5.18 is vulnerable to a denial of service attack via a crafted ZIP file that declares an excessively large uncompressed size in its central directory header. The vulnerability exists because the code allocates memory (Buffer.alloc) based on this declared size without bounds checking or validation against the actual compressed data size. This allows an attacker to cause a memory allocation amplification of over 33 million times, leading to immediate process crashes during extraction or reading operations. The flaw affects all extraction and read methods, including readFile(), readAsText(), extractEntryTo(), extractAllTo(), extractAllToAsync(), test(), and entry.getData(). The malicious payload cannot be rejected early because allocation occurs before CRC validation.
Potential Impact
Applications using vulnerable versions of adm-zip that accept untrusted ZIP files are susceptible to denial of service via process crashes caused by excessive memory allocation. This can disrupt service availability and potentially lead to application instability or downtime. There is no indication of code execution or data corruption beyond denial of service.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted ZIP files with adm-zip versions prior to 0.5.18. Consider implementing additional input validation or sandboxing to limit impact.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-04-06T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a511ed468715ace43d68927
Added to database: 07/10/2026, 16:33:24 UTC
Last enriched: 07/10/2026, 16:48:48 UTC
Last updated: 08/22/2026, 22:52:13 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.