Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/moby/go-archive
  4. ›
  5. CVE-2026-17106

CVE-2026-17106: moby/go-archive: Crafted tar archive can write outside the extraction directory

August 18, 2026 (updated August 20, 2026)

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. A crafted archive can create or overwrite files outside the intended destination.

References

  • docs.docker.com/desktop/release-notes/
  • github.com/advisories/GHSA-hfg8-hc9c-6c3h
  • github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escape
  • github.com/docker/cli/releases/tag/v29.7.0
  • github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h
  • github.com/moby/moby/issues/52948
  • github.com/moby/moby/releases/tag/docker-v29.7.0
  • nvd.nist.gov/vuln/detail/CVE-2026-17106
  • www.imperva.com/blog/copyescape-taking-over-docker-hosts-with-docker-cp

Code Behaviors & Features

Detect and mitigate CVE-2026-17106 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.3.0

Fixed versions

  • 0.3.0

Solution

Upgrade to version 0.3.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

go/github.com/moby/go-archive/CVE-2026-17106.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:00 +0000.