Skip to main content

adm-zip: Decompression-bomb protection (fix for CVE-2026-39244) can be bypassed by declaring uncompressed size as 0

0
High
Published: 09/29/2026 (09/29/2026, 18:25:20 UTC)
Source: GCVE Database
Product: adm-zip

Description

A vulnerability in adm-zip version 0.6.0 allows bypassing decompression-bomb protection by setting the declared uncompressed size in a ZIP entry to zero. This causes the decompression output size limit to be ignored, potentially leading to excessive memory allocation and process crashes. The issue arises because the decompression cap is only applied when the declared size is greater than zero. A patch is available to address this flaw.

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

npmghsa
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/29/2026, 21:21:31 UTC

Technical Analysis

The adm-zip package's fix for CVE-2026-39244 limits decompression output size based on the declared uncompressed size in the ZIP entry header. However, if an attacker sets this declared size to zero, the limit is not applied, and zlib's internal default maximum output size (several GB) is used instead. This allows a small compressed payload to decompress into a very large buffer, causing resource exhaustion. The vulnerability affects adm-zip version 0.6.0 and can be triggered by crafting a ZIP archive with a zero declared uncompressed size header while maintaining a valid CRC. The recommended fix is to apply the output size limit unconditionally or add an independent compression ratio check.

Potential Impact

Applications using adm-zip 0.6.0 to read or extract untrusted ZIP files can be forced to allocate multi-gigabyte memory buffers, leading to high memory consumption and potential process crashes or out-of-memory conditions. This impacts any scenario where untrusted ZIP files are processed, such as upload handlers, continuous integration artifact extraction, or email attachment scanning. There is no impact on confidentiality or integrity, only availability due to resource exhaustion.

Mitigation Recommendations

A patch is available for adm-zip that fixes this vulnerability by ensuring the decompression output size limit is applied regardless of the declared uncompressed size value. Users should upgrade to a fixed version (>=0.6.1) once available. Until patched, avoid processing untrusted ZIP files with adm-zip 0.6.0 or implement additional input validation to reject ZIP entries with a declared uncompressed size of zero.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-rcw4-f5rp-g42v
Osv Schema Version
1.4.0
Ecosystems
["npm"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6abc27cb680226ef6846f8ac

Added to database: 09/29/2026, 21:04:11 UTC

Last enriched: 09/29/2026, 21:21:31 UTC

Last updated: 09/30/2026, 03:30:23 UTC

Views: 4

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