Skip to content
OpenAdvisories
High · 7.5 CVE-2026-77301 EUVD-2026-83170GHSA-7q85-xj36-vmfc

adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)

Published Sep 18, 2026 · Updated Sep 18, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
cthackers adm-zip < 0.6.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling saf 1.7.0-r2 —
Wolfi rolling sqlpad 7.5.7-r41 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm adm-zip < 0.6.1 0.6.1 GHSA-7q85-xj36-vmfc

References