Skip to main content
Vulnerability Database/CVE-2026-114104

CVE-2026-114104: adm-zip Entry Resolution Vulnerability

CVE-2026-114104 is an entry resolution flaw in adm-zip that lets attackers bypass content validation using ZIP archives with duplicate entries. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114104 Overview

CVE-2026-114104 affects the adm-zip Node.js library in versions prior to 0.6.1. The library resolves ZIP entries inconsistently when an archive contains duplicate entry names. The getEntry() function returns the last duplicate while extractAllTo() writes the first, enabling attackers to bypass content validation. An attacker who controls a ZIP archive processed by a vulnerable application can write unvalidated bytes to disk. The flaw is classified under CWE-436: Interpretation Conflict.

Critical Impact

Attackers can bypass antivirus, signature, or content inspection performed via getEntry() and deliver malicious files through extractAllTo(), compromising file integrity on the extraction host.

Affected Products

  • adm-zip versions prior to 0.6.1
  • Node.js applications that validate ZIP entries with getEntry() before extraction
  • Downstream libraries and tools bundling vulnerable adm-zip releases

Discovery Timeline

  • 2026-10-21 - CVE-2026-114104 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-114104

Vulnerability Analysis

The vulnerability is a parser interpretation conflict inside adm-zip. ZIP archives can legally contain multiple entries sharing the same filename within the central directory. The library resolves these duplicates differently depending on the API call. getEntry(name) returns the last matching record, while extractAllTo() iterates and writes the first matching record. Applications that perform security validation on an entry resolved by getEntry() therefore inspect a different payload than the one written to disk.

This desynchronization defeats common defensive patterns such as reading entry content, scanning it, checking magic bytes, or validating a hash before extraction. The extracted file can contain arbitrary bytes supplied by the attacker, including executable payloads, configuration files, or scripts referenced elsewhere in the application.

Root Cause

The root cause is inconsistent entry resolution across the library's public API. adm-zip does not enforce uniqueness of entry names in the central directory and does not expose which record a given name resolves to. The validation path and the extraction path consume different records for the same logical filename, producing a time-of-check versus time-of-use condition rooted in parser design rather than file system races.

Attack Vector

Exploitation requires an attacker to supply or influence a ZIP archive that a Node.js application processes with vulnerable adm-zip. The attacker crafts an archive containing two entries with identical names: a benign entry positioned to be returned by getEntry() and a malicious entry positioned to be written by extractAllTo(). When the application validates the benign entry and then calls extractAllTo(), the malicious bytes land on disk under the trusted filename. The attack is network-reachable wherever user-supplied archives are accepted, including file upload endpoints, package processors, and automated build pipelines.

No verified public proof-of-concept code is referenced in the advisory. See the GitHub Security Advisory GHSA-p634-w6r4-rjp2 and the VulnCheck Advisory for adm-zip for technical details.

Detection Methods for CVE-2026-114104

Indicators of Compromise

  • ZIP archives submitted to applications that contain two or more entries sharing identical filenames in the central directory.
  • Extracted files whose on-disk hash does not match the hash computed by the application during pre-extraction validation.
  • Unexpected executables, scripts, or configuration files appearing in extraction target directories after processing user-supplied archives.

Detection Strategies

  • Enumerate ZIP central directory records in incoming archives and alert when duplicate filenames occur.
  • Compare the SHA-256 of each extracted file against the SHA-256 computed from the entry returned by getEntry() before extraction and flag mismatches.
  • Audit application dependency manifests (package.json, package-lock.json, yarn.lock) for adm-zip versions below 0.6.1.

Monitoring Recommendations

  • Instrument file-write telemetry on extraction directories and correlate written filenames against validated entries recorded in application logs.
  • Monitor process execution originating from directories that receive extracted archive contents.
  • Track outbound software composition analysis reports for continued presence of vulnerable adm-zip releases across repositories and build artifacts.

How to Mitigate CVE-2026-114104

Immediate Actions Required

  • Upgrade adm-zip to version 0.6.1 or later across all Node.js services, build tooling, and container images.
  • Rebuild and redeploy applications that bundle adm-zip transitively through other dependencies.
  • Reject or quarantine archives containing duplicate entry names at ingress controls before passing them to extraction logic.

Patch Information

The maintainers released adm-zip version 0.6.1 to resolve the inconsistent entry resolution. Refer to the GitHub Security Advisory GHSA-p634-w6r4-rjp2 for the fixed release and remediation guidance.

Workarounds

  • Validate archives by iterating the full entry list and rejecting any archive containing duplicate names before calling extractAllTo().
  • Replace extraction-then-validate patterns with validation that reads the exact bytes written to disk after extraction completes.
  • Constrain archive processing to isolated, non-privileged environments so that an unvalidated write cannot overwrite trusted files or executables.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.