{
  "id": "CVE-2026-17106",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-17106",
  "published_at": "2026-08-18T18:35:13.465Z",
  "title": "Tar extraction in moby/go-archive can write outside the destination directory via link following",
  "vendor": "moby",
  "product": "go-archive",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-08-09T21:02:40Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -8.9,
    "repo": "masasron/CopyEscape-CVE-2026-17106",
    "source": "github"
  },
  "poc_repo_count": 4,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, Untar/UntarUncompressed, and the ApplyLayer helpers) do not confine filesystem operations to the destination directory. The extractor decides where each archive entry lands using lexical string checks and then performs the filesystem operation on a path that is resolved by the OS, so links introduced by the archive can be followed out of the destination directory. An attacker who controls the contents of an archive can create or overwrite files at arbitrary paths writable by the extracting process.",
  "cwe": "CWE-59",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [
    {
      "repo": "masasron/CopyEscape-CVE-2026-17106",
      "url": "https://github.com/masasron/CopyEscape-CVE-2026-17106",
      "created_at": "2026-08-09T21:02:40Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 23,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2014-04-20T09:26:32Z"
    },
    {
      "repo": "HackSpeak/CVE-2026-17106",
      "url": "https://github.com/HackSpeak/CVE-2026-17106",
      "created_at": "2026-08-11T11:34:39Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-08-03T11:16:26Z"
    },
    {
      "repo": "686f6c61/POC-CopyEscape-CVE-2026-17106",
      "url": "https://github.com/686f6c61/POC-CopyEscape-CVE-2026-17106",
      "created_at": "2026-08-12T16:41:52Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-12-05T14:56:51Z"
    },
    {
      "repo": "CompleteTech-Security/copyescape-check",
      "url": "https://github.com/CompleteTech-Security/copyescape-check",
      "created_at": "2026-10-23T23:49:09Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-10-24T07:04:53Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "moby",
        "product": "go-archive",
        "ranges": [
          "\u003c 0.3.0"
        ],
        "fixed_in": [
          "0.3.0"
        ]
      },
      {
        "vendor": "Docker",
        "product": "Docker Sandboxes",
        "ranges": [
          "\u003c 0.38.0"
        ],
        "fixed_in": [
          "0.38.0"
        ]
      },
      {
        "vendor": "Docker",
        "product": "Docker Desktop",
        "ranges": [
          "\u003c 4.86.0"
        ],
        "fixed_in": [
          "4.86.0"
        ]
      },
      {
        "vendor": "Docker",
        "product": "Docker Engine",
        "ranges": [
          "\u003c 29.7.0"
        ],
        "fixed_in": [
          "29.7.0"
        ]
      },
      {
        "vendor": "Docker",
        "product": "Docker CLI",
        "ranges": [
          "\u003c 29.7.0"
        ],
        "fixed_in": [
          "29.7.0"
        ]
      },
      {
        "vendor": "Docker",
        "product": "Docker Compose",
        "ranges": [
          "\u003c 5.4.0"
        ],
        "fixed_in": [
          "5.4.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade go-archive to 0.3.0 or later.",
      "Upgrade Docker Sandboxes to 0.38.0 or later.",
      "Upgrade Docker Desktop to 4.86.0 or later.",
      "Upgrade Docker Engine to 29.7.0 or later.",
      "Upgrade Docker CLI to 29.7.0 or later.",
      "Upgrade Docker Compose to 5.4.0 or later."
    ],
    "workarounds": [
      "Only extract trusted archives."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h"
      },
      {
        "kind": "Release notes",
        "url": "https://docs.docker.com/desktop/release-notes/#4860"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/docker/sbx-releases/releases/tag/v0.38.0"
      },
      {
        "kind": "Release notes",
        "url": "https://docs.docker.com/engine/release-notes/29/#2970"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/docker/cli/releases/tag/v29.7.0"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/docker/compose/releases/tag/v5.4.0"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/moby/go-archive/releases/tag/v0.3.0"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/masasron/CopyEscape-CVE-2026-17106/blob/5267d7d2c138f8d76f0ef72463541f74d121d275/macos/demo-macos.sh",
      "source": "pocindex",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-14T11:25:11.578Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
