Skip to content
Heist/ feed
Back to feed
High

adm-zip extraction preserves SUID/SGID bits from untrusted ZIPs -> local privilege escalation

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-102282
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:17 UTC · Revision 1

Source evidence

adm-zip extraction preserves SUID/SGID bits from untrusted ZIPs -> local privilege escalation

core-osv · Original source

Published 5 Oct 2026, 17:00 UTC

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.

osv:CVE-2026-102282
Complete source record
{
  "id": "467ed744c346a8714711016817aef87611b182125f3380947798cd05bf52f632",
  "url": "https://osv.dev/vulnerability/CVE-2026-102282",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "adm-zip extraction preserves SUID/SGID bits from untrusted ZIPs -> local privilege escalation",
    "summary": "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.",
    "evidence": "osv:CVE-2026-102282",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-102282",
      "aliases": [
        "CVE-2026-102282",
        "GHSA-j5f4-cc29-5x44"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cthackers/adm-zip",
              "type": "GIT",
              "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"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.021257299Z",
      "provider": "osv",
      "references": [
        "https://github.com/cthackers/adm-zip/releases/tag/v0.6.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102282.json",
        "https://github.com/cthackers/adm-zip/security/advisories/GHSA-j5f4-cc29-5x44",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-102282",
        "https://github.com/cthackers/adm-zip/commit/6a63c339b83c52915483efacda517660a7a7bf87"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-732"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102282.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-102282",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521709,
  "published_at": "2026-10-05T17:00:00.25+00:00"
}