CVE-2026-17106
JSON

7.1high

Tar extraction in moby/go-archive can write outside the destination directory via link following

Severity
7.1high CVSS:4.0 by Docker
Exploit likelihood
0.47% (higher than 42% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Docker
Also known as
GHSA-hfg8-hc9c-6c3hBIT-DOCKER-CLI-2026-17106GO-2026-6253

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.

Affected

Product or packageVersionsReported by
github.com/moby/go-archivebefore 0.3.0CVE List
Docker Docker Sandboxesbefore 0.38.0CVE List
Docker Docker Desktopbefore 4.86.0CVE List
Docker Docker Enginebefore 29.7.0CVE List
Docker Docker CLIbefore 29.7.0CVE List
Docker Docker Composebefore 5.4.0CVE List
github.com/moby/go-archive (Go)before 0.3.0GitHub Advisory Database, Go Vulnerability Database
docker-cli (Bitnami)before 29.7.0Bitnami Vulnerability Database

All scores

Docker7.1high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-22CWE-59

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

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.

Details

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 a links introduced by the archive can be followed out of the destination directory.

Impact

An attacker who controls the contents of archive can create or overwrite files at arbitrary paths writable by the extracting process.

Workarounds

Only extract trusted archives.

Go Vulnerability Database

moby/go-archive: Crafted tar archive can write outside the extraction directory in github.com/moby/go-archive

References

https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3hadvisory, vendor-advisory, web
https://docs.docker.com/desktop/release-notes/#4860release-notes, web
https://github.com/docker/sbx-releases/releases/tag/v0.38.0release-notes, web
https://docs.docker.com/engine/release-notes/29/#2970release-notes, web
https://github.com/docker/cli/releases/tag/v29.7.0release-notes, web
https://github.com/docker/compose/releases/tag/v5.4.0release-notes, web
https://github.com/moby/go-archive/releases/tag/v0.3.0patch, web
https://github.com/masasron/CopyEscape-CVE-2026-17106exploit, web
https://github.com/moby/moby/issues/52948web
https://github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escapeweb
https://github.com/moby/go-archivepackage
https://github.com/moby/moby/releases/tag/docker-v29.7.0web

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-17106 changed 2026-08-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-hfg8-hc9c-6c3h changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6253 changed 2026-09-01CC-BY-4.0
NVDCVE-2026-17106 changed 2026-08-28Public domain
Bitnami Vulnerability DatabaseBIT-DOCKER-CLI-2026-17106 changed 2026-08-24Apache-2.0