CVE-2026-77301: CWE-789: Memory Allocation with Excessive Size Value in cthackers adm-zip
adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.
AI Analysis
Technical Summary
The adm-zip library for Node.js versions before 0.6.1 contains a memory allocation vulnerability (CWE-789) in the getData() function of zipEntry.js. The function trusts the central-directory uncompressed size declared in a ZIP entry and allocates memory accordingly before validating it against actual compressed data and decompression results. An attacker can craft a ZIP archive with a small compressed size but a multi-gigabyte uncompressed size, causing Buffer.alloc to allocate excessive memory. This can result in the application being terminated by the operating system or suffering service-wide memory exhaustion. The vulnerability does not affect confidentiality or integrity but impacts availability. The issue is resolved in adm-zip version 0.6.1.
Potential Impact
Exploitation of this vulnerability can cause denial of service by exhausting system memory or causing the application to be terminated. There is no impact on confidentiality or integrity. The vulnerability affects applications that process untrusted ZIP archives using adm-zip versions prior to 0.6.1.
Mitigation Recommendations
Upgrade adm-zip to version 0.6.1 or later, where this vulnerability is fixed. Until upgraded, avoid processing ZIP archives from untrusted sources to prevent potential memory exhaustion.
CVE-2026-77301: CWE-789: Memory Allocation with Excessive Size Value in cthackers adm-zip
Description
adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.
CVSS v3.1
Score 7.5high
Affected software
cthackers
adm-zip
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 for Node.js versions before 0.6.1 contains a memory allocation vulnerability (CWE-789) in the getData() function of zipEntry.js. The function trusts the central-directory uncompressed size declared in a ZIP entry and allocates memory accordingly before validating it against actual compressed data and decompression results. An attacker can craft a ZIP archive with a small compressed size but a multi-gigabyte uncompressed size, causing Buffer.alloc to allocate excessive memory. This can result in the application being terminated by the operating system or suffering service-wide memory exhaustion. The vulnerability does not affect confidentiality or integrity but impacts availability. The issue is resolved in adm-zip version 0.6.1.
Potential Impact
Exploitation of this vulnerability can cause denial of service by exhausting system memory or causing the application to be terminated. There is no impact on confidentiality or integrity. The vulnerability affects applications that process untrusted ZIP archives using adm-zip versions prior to 0.6.1.
Mitigation Recommendations
Upgrade adm-zip to version 0.6.1 or later, where this vulnerability is fixed. Until upgraded, avoid processing ZIP archives from untrusted sources to prevent potential memory exhaustion.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-20T19:17:14.375Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aad6b0955bf5e2cf541928d
Added to database: 09/18/2026, 16:47:05 UTC
Last enriched: 09/18/2026, 17:01:40 UTC
Last updated: 09/18/2026, 17:32:13 UTC
Views: 2
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.