Description
adm-zip versions 0.5.14 through 0.6.0 fail to apply zlib decompression output limits when ZIP entries declare zero uncompressed size. Attackers can craft malicious ZIP archives with highly compressible entries declaring zero size to exhaust memory and cause denial of service.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cthackers | adm-zip | 0.5.14 – < 0.6.1 | 0.6.1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | adm-zip | < 0.6.1 | 0.6.1 | GHSA-rcw4-f5rp-g42v |
References
- GitHub Security Advisory (GHSA-rcw4-f5rp-g42v) vendor-advisory
- Fix commit (0.6.1) patch
- Commit introducing the conditional cap (0.5.14) technical-description patch
- Vulnerable inflater.js at v0.6.0 technical-description
- https://github.com/cthackers/adm-zip product
- VulnCheck Advisory: adm-zip 0.5.14 through 0.6.0 Denial of Service via Zero Declared Uncompressed Size third-party-advisory