CVE-2026-17106: Tar extraction in moby/go-archive can write outside the destination directory via link following
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-59
Tracked companies
Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
Docker: Docker CLIDocker: Docker ComposeDocker: Docker DesktopDocker: Docker EngineDocker: Docker Sandboxesmoby: go-archive
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- docs.docker.com/desktop/release-notes/ (opens in new tab)
- docs.docker.com/engine/release-notes/29/ (opens in new tab)
- github.com/docker/cli/releases/tag/v29.7.0 (opens in new tab)
- github.com/docker/compose/releases/tag/v5.4.0 (opens in new tab)
- github.com/docker/sbx-releases/releases/tag/v0.38.0 (opens in new tab)
- github.com/moby/go-archive/releases/tag/v0.3.0 (opens in new tab)
- github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)