{"id":"CVE-2026-102282","summary":"adm-zip extraction preserves SUID/SGID bits from untrusted ZIPs -\u003e local privilege escalation","details":"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.","aliases":["GHSA-j5f4-cc29-5x44"],"modified":"2026-10-21T02:55:04.709525851Z","published":"2026-10-05T17:00:00.250Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-732"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102282.json"},"references":[{"type":"WEB","url":"https://github.com/cthackers/adm-zip/releases/tag/v0.6.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102282.json"},{"type":"ADVISORY","url":"https://github.com/cthackers/adm-zip/security/advisories/GHSA-j5f4-cc29-5x44"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102282"},{"type":"FIX","url":"https://github.com/cthackers/adm-zip/commit/6a63c339b83c52915483efacda517660a7a7bf87"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cthackers/adm-zip","events":[{"introduced":"0"},{"fixed":"cb2cf9ba4c7c865db426e2de1997cb41194d9872"},{"fixed":"6a63c339b83c52915483efacda517660a7a7bf87"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"0.6.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"6a63c339b83c52915483efacda517660a7a7bf87"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"cb2cf9ba4c7c865db426e2de1997cb41194d9872"}],"source":"REFERENCES_TAG","original_tag":"v0.6.1"}]}}],"versions":["v0.6.0","v0.5.18","v0.5.17","v0.5.16","v0.5.15","v0.5.14","v0.5.13","v0.5.12","v0.5.11","v0.5.10","v0.5.9","v0.5.8","v0.5.7","v0.5.6","v0.5.5","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.16","v0.4.14","v0.4.13","v0.4.11","v0.4.10","v0.4.9","v0.4.8","v0.4.7","v0.4.5","v0.4.6","v0.4.4","v0.4.3","v0.3.2","v0.3.1","v0.2.1","v0.1.9","v0.1.8","v0.1.7","v0.1.5","v0.1.3","v0.1.2","v0.1.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102282.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}