Skip to main content

CVE-2026-77301: CWE-789: Memory Allocation with Excessive Size Value in cthackers adm-zip

0
High
VulnerabilityCVE-2026-77301cvecve-2026-77301cwe-789
Published: 09/18/2026 (09/18/2026, 16:38:47 UTC)
Source: CVE Database V5
Vendor/Project: cthackers
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

cthackers

adm-zip

Affected versions
<0.6.1
adm-zip
pkg:npm/adm-zip
Affected versions
<0.6.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 17:01:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses