adm-zip: Crafted ZIP file triggers 4GB memory allocation
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.
Affected Packages
| Ecosystem | Package | Vulnerable Versions | Patched Version |
|---|---|---|---|
| npm |
adm-zip
|
< 0.6.0 |
0.6.0
|
deps(deps): bump the security group across 1 directory with 3 updates
Open 6 days agochore(deps): bump the npm_and_yarn group across 1 directory with 9 updates
Closed 14 days agoBump the npm_and_yarn group across 16 directories with 5 updates
Open 19 days agochore(deps): bump the npm_and_yarn group across 4 directories with 18 updates
Open 19 days agochore(deps): bump the npm_and_yarn group across 3 directories with 4 updates
Open about 1 month agoBump the minor-and-patch group across 1 directory with 50 updates
Closed about 1 month agodeps(deps): bump the minor-and-patch group across 1 directory with 8 updates
Open about 1 month agochore(deps): bump the npm_and_yarn group across 3 directories with 18 updates
Closed about 1 month agoBump adm-zip from 0.5.18 to 0.6.1
Closed about 1 month agobuild(deps-dev): bump the npm-patch group across 1 directory with 2 updates
Closed about 1 month agoBump the npm_and_yarn group across 14 directories with 11 updates
Closed about 2 months agoBump the npm_and_yarn group across 19 directories with 16 updates
Closed about 2 months agoBump the npm_and_yarn group across 22 directories with 2 updates
Closed about 2 months agochore(deps): bump adm-zip from 0.5.18 to 0.6.1 in the security-patches group across 1 directory
Closed about 2 months agoBump the npm_and_yarn group across 3 directories with 4 updates
Closed about 2 months agochore(deps): bump adm-zip from 0.5.17 to 0.6.1
Open 2 months agoBump adm-zip and deepl-node
Open 2 months agochore(deps): bump adm-zip and @huggingface/transformers in /workers/recommender
Open 2 months agochore(deps): bump adm-zip and web-ext
Open 2 months agoBump adm-zip and @huggingface/transformers in /resources/experimental
Open 2 months agoBump adm-zip, @wordpress/env and @wordpress/scripts
Closed 2 months agoBump adm-zip, @nomicfoundation/hardhat-chai-matchers, @nomicfoundation/hardhat-ethers and @nomicfoundation/hardhat-toolbox
Open 2 months agoBump adm-zip, @nomicfoundation/hardhat-toolbox and hardhat
Open 2 months agobuild(deps): bump adm-zip from 0.5.10 to 0.6.1
Open 2 months agochore(deps): bump the npm_and_yarn group across 1 directory with 2 updates
Open 2 months agoBump the npm_and_yarn group across 1 directory with 18 updates
Closed 2 months agoBump the npm_and_yarn group across 3 directories with 24 updates
Open 2 months agochore(deps): bump adm-zip from 0.5.10 to 0.6.1 in /archive/ai-agent-platform/apps/edge
Open 2 months agobuild(deps): bump the minor-and-patch group across 1 directory with 27 updates
Open 2 months agobuild(deps): bump the all-dependencies group in /eigent-main with 28 updates
Open 2 months agochore(deps): bump the all-dependencies group in /archive/ai-agent-platform/apps/edge with 7 updates
Open 2 months agobuild(deps): bump the npm_and_yarn group across 2 directories with 7 updates
Closed 2 months agoBump the npm_and_yarn group across 16 directories with 14 updates
Closed 2 months agoBump adm-zip and deepl-node
Open 2 months agochore(deps): bump the npm_and_yarn group across 1 directory with 20 updates
Open 2 months agochore(deps): bump the npm_and_yarn group across 4 directories with 8 updates
Closed 2 months agoBump adm-zip and deepl-node
Open 2 months agochore(deps): bump the npm_and_yarn group across 1 directory with 10 updates
Closed 2 months agoBump the npm_and_yarn group across 16 directories with 14 updates
Closed 2 months agoBump the npm_and_yarn group across 36 directories with 13 updates
Closed 2 months agoBump adm-zip from 0.5.16 to 0.6.0
Open 2 months agochore(deps): bump the bagimliliklar group with 17 updates
Closed 3 months agochore(deps): bump the npm_and_yarn group across 2 directories with 16 updates
Open 3 months agobuild(deps): bump the minor-and-patch group across 1 directory with 26 updates
Closed 3 months agochore(deps): bump the npm_and_yarn group across 2 directories with 17 updates
Open 3 months agoBump adm-zip and deepl-node
Open 3 months agobuild(deps-dev): Bump the dev group across 1 directory with 8 updates
Closed 3 months agoBump adm-zip and deepl-node
Closed 3 months agoBump adm-zip and deepl-node
Open 3 months agoBump adm-zip and deepl-node
Closed 3 months agoActions
Advisory Details
| Published: | July 10, 2026 5 months ago |
| Updated: | November 19, 2026 4 days ago |
| CVSS Score: | 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| EPSS: | 0.84% 59th percentile |
| Source: | Github |
| Classification: | GENERAL |
| UUID: | GSA_kwCzR0hTQS14Y3BjLThoMnctM2o4Nc4ABahG |