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-114105 Overview
CVE-2026-114105 affects the adm-zip Node.js library before version 0.6.1. The library contains an incorrect permission assignment vulnerability [CWE-732] that allows attackers to set setuid, setgid, or sticky bits on files extracted from a crafted zip archive. The issue surfaces only when the keepOriginalPermission option is enabled during extraction. Attackers craft zip external file attributes that pass unmasked into chmod, letting attacker-controlled executables gain elevated privileges when extracted as root and later executed. The vulnerability was published to the National Vulnerability Database (NVD) on October 21, 2026.
Critical Impact
An attacker-supplied archive extracted by a privileged process can plant setuid root binaries, enabling local privilege escalation when those files are later executed.
Affected Products
- adm-zip Node.js library versions prior to 0.6.1
- Applications invoking extractAllTo or extractEntryTo with the keepOriginalPermission flag enabled
- Node.js services running as root that unpack untrusted zip archives
Discovery Timeline
- 2026-10-21 - CVE-2026-114105 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-114105
Vulnerability Analysis
The adm-zip library preserves Unix file permissions stored in a zip archive's external file attributes when keepOriginalPermission is enabled. The library passes the raw permission bits directly to chmod without masking the setuid (04000), setgid (02000), or sticky (01000) bits. An attacker can author a zip archive whose entries declare permission bits such as 04755, and extraction preserves those bits on disk.
When a privileged process, typically running as root, extracts such an archive, the resulting binary becomes a setuid-root executable owned by root. Any local user who then runs that binary gains root privileges. The flaw sits at the boundary between archive metadata parsing and the file-system permission call, which trusts untrusted archive data.
Root Cause
The root cause is improper permission masking. The extraction routine honors the full 16-bit mode field from the zip central directory entry and forwards it to fs.chmodSync without stripping the three high-order permission bits. [CWE-732] (Incorrect Permission Assignment for Critical Resource) captures this class of flaw.
Attack Vector
Exploitation requires local extraction of an attacker-controlled archive by a privileged user. The attacker crafts a zip file whose external attributes advertise setuid or setgid bits on an executable payload. A victim application running as root and configured with keepOriginalPermission: true extracts the archive, writing the payload with elevated permissions. A later invocation of the planted binary by an unprivileged user executes attacker code as root. See the GitHub Security Advisory and the VulnCheck Privilege Escalation Advisory for additional technical detail.
Detection Methods for CVE-2026-114105
Indicators of Compromise
- Unexpected setuid or setgid binaries appearing in directories written by Node.js extraction routines.
- Files owned by root with mode bits 04xxx or 02xxx in application data, upload, or temp directories.
- Node.js processes invoking fs.chmodSync with modes greater than 0o777 shortly after archive extraction.
Detection Strategies
- Audit dependency manifests (package.json, package-lock.json, yarn.lock) for adm-zip versions below 0.6.1.
- Scan filesystems periodically for setuid or setgid files using find / -perm /6000 -type f and compare against a known-good baseline.
- Review application source for extractAllTo and extractEntryTo calls with keepOriginalPermission enabled and flag those code paths.
Monitoring Recommendations
- Alert on filesystem events that create new setuid or setgid files outside of package manager and system update paths.
- Monitor privileged process executions that follow archive extraction activity by the same user or service account.
- Track outbound process execution of files located in application-writable directories owned by root.
How to Mitigate CVE-2026-114105
Immediate Actions Required
- Upgrade adm-zip to version 0.6.1 or later across all services and build artifacts.
- Disable the keepOriginalPermission option unless strictly required for the application workflow.
- Avoid running archive-processing services as root; use a dedicated unprivileged service account.
- Scan hosts for pre-existing setuid or setgid files planted before the upgrade and remove unauthorized entries.
Patch Information
The maintainers released a fix in adm-zip version 0.6.1. Update the dependency in package.json and rebuild dependent images. Refer to the GitHub Security Advisory GHSA-qjf8-53jv-w9w6 for the fixed version and advisory details.
Workarounds
- Set keepOriginalPermission to false or omit the option so default masked permissions are applied.
- Post-process extracted files with an explicit chmod call that masks mode bits with 0o777 to strip setuid, setgid, and sticky bits.
- Mount extraction target directories with the nosuid option so setuid bits on extracted files have no effect at execution time.
# Configuration example: mount extraction target with nosuid
mount -o remount,nosuid /var/app/extracted
# Strip elevated bits from any files already extracted
find /var/app/extracted -type f -perm /6000 -exec chmod u-s,g-s {} \;
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

