# CVE-2026-114105: Adm-zip incorrect permission assignment with keepOriginalPermission

Source: https://junglewise.ai/threats/cve-2026-114105-adm-zip-before-0-6-1-contains-an-incorrect-permission-assignment  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-21. Updated: 2026-10-21  
License: CC BY 4.0 with a link back

CVE-2026-114105 · Severity: medium · CVSS 6.2 · Published 2026-10-21

Adm-zip is a JavaScript library for extracting and manipulating ZIP archives. When the keepOriginalPermission option is enabled, attackers can craft malicious ZIP files to set setuid or setgid bits on extracted files, allowing attacker-controlled executables to run with elevated privileges when extracted as root (such as in CI pipelines or container builds) and later executed.

Technologies: [adm-zip (npm)](https://junglewise.ai/threats/technologies/adm-zip). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-114105 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-114105 being exploited in the wild.

**How severe is CVE-2026-114105?** Medium severity, with a CVSS score of 6.2, published 21 October 2026.

**Which products and versions are affected?** adm-zip (npm) before 0.6.1.

**Is there a fix for CVE-2026-114105?** Yes: fixed in adm-zip 0.6.1. Until then: Do not use keepOriginalPermission: true when extracting untrusted or attacker-influenced ZIP archives. Extract only trusted archives, or rely on the default behavior (keepOriginalPermission: false) which applies safe permission modes. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-114105 attacked?** It is attacked with local access.

**Am I affected by CVE-2026-114105?** Check whether you run adm-zip (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in adm-zip 0.6.1

Do not use keepOriginalPermission: true when extracting untrusted or attacker-influenced ZIP archives. Extract only trusted archives, or rely on the default behavior (keepOriginalPermission: false) which applies safe permission modes.

## Technical details

The vulnerability is an incorrect permission assignment (CWE-732) in the fileAttr getter, which uses a 12-bit mask (0xfff / 07777 octal) that preserves setuid (04000), setgid (02000), and sticky bits when reading from zip external file attributes. These attacker-controlled permission bits flow unmodified into chmod/chmodSync with no additional masking. The issue affects extractAllTo, extractAllToAsync, and extractEntryTo when keepOriginalPermission is true; extraction without this flag (the default) is not affected.

## Affected products

- npm adm-zip before 0.6.1

## Timeline

- 2026-09-11: disclosed
- 2026-10-21: advisory

## References

- [https://github.com/cthackers/adm-zip/security/advisories/GHSA-qjf8-53jv-w9w6](https://github.com/cthackers/adm-zip/security/advisories/GHSA-qjf8-53jv-w9w6)
- [https://www.vulncheck.com/advisories/adm-zip-before-0.6.1-privilege-escalation-via-keeporiginalpermission-setuid-bits](https://www.vulncheck.com/advisories/adm-zip-before-0.6.1-privilege-escalation-via-keeporiginalpermission-setuid-bits)

## Related threats

- [adm-zip permission bit extraction privilege escalation](https://junglewise.ai/threats/cve-2026-102282-adm-zip-extraction-preserves-suid-sgid-bits-from-untrusted-zips)
- [adm-zip duplicate ZIP entry name validation bypass](https://junglewise.ai/threats/adm-zip-duplicate-zip-entry-names-getentry-and-extractallto-resolve-to-42f08f8e)
- [adm-zip getDataAsync() decompression bomb bypass](https://junglewise.ai/threats/adm-zip-getdataasync-bypasses-the-maxoutputlength-size-guard-enforced-3e032cd1)
- [adm-zip async decompression denial of service](https://junglewise.ai/threats/adm-zip-unhandled-error-event-in-async-deflate-decompression-crashes-337da7e4)
- [adm-zip uncontrolled memory allocation via uncompressed size](https://junglewise.ai/threats/cve-2026-77301-adm-zip-uncontrolled-memory-allocation-via-uncompressed-size)
