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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-29T18:24:57.000Z
- Modified: 2026-10-08T10:56:40.691Z
- Also known as: GHSA-j5f4-cc29-5x44
- Related: CVE-2026-104973
- Weaknesses: CWE-732
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cthackers adm-zip: < 0.6.1
- adm-zip (npm): before 0.6.1

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/cthackers/adm-zip/security/advisories/GHSA-j5f4-cc29-5x44> (exploit, web)
- <https://github.com/cthackers/adm-zip/commit/6a63c339b83c52915483efacda517660a7a7bf87> (web)
- <https://github.com/cthackers/adm-zip/releases/tag/v0.6.1> (web)
- <https://github.com/cthackers/adm-zip> (package)

## Sources

- CVE List: [CVE-2026-102282](https://www.cve.org/CVERecord?id=CVE-2026-102282), CVE Terms of Use, modified 2026-10-07
- GitHub Advisory Database: [GHSA-j5f4-cc29-5x44](https://github.com/advisories/GHSA-j5f4-cc29-5x44), CC-BY-4.0, modified 2026-10-08
- NVD: [CVE-2026-102282](https://nvd.nist.gov/vuln/detail/CVE-2026-102282), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2026-102282 · Whole record: https://cve.day/CVE-2026-102282.json · Rebuilt by cve.day 2026-11-25T22:59:42.129Z
