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

Summary

CVECVE-2026-17106
StatePUBLISHED
AssignerDocker
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-18 19:16:45 UTC
Updated2026-08-19 04:16:57 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v4.0 7.1 HIGH from [email protected]

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Problem Types: CWE-59 | CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary7.1HIGHCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/C...
4.0CNACVSS7.1HIGHCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS v4.0 Breakdown

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Confidentiality
High
Integrity
High
Availability
High
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Moby Go-archive affected 0.3.0 semver Not specified
CNA Docker Docker Sandboxes affected 0.38.0 semver MacOS, Linux, Windows
CNA Docker Docker Desktop affected 4.86.0 semver MacOS, Linux, Windows
CNA Docker Docker Engine affected 29.7.0 semver MacOS, Linux, Windows
CNA Docker Docker CLI affected 29.7.0 semver MacOS, Linux, Windows
CNA Docker Docker Compose affected 5.4.0 semver MacOS, Linux, Windows

References

ReferenceSourceLinkTags
github.com/moby/go-archive/releases/tag/v0.3.0 [email protected] github.com
docs.docker.com/desktop/release-notes [email protected] docs.docker.com
github.com/masasron/CopyEscape-CVE-2026-17106 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com
github.com/docker/sbx-releases/releases/tag/v0.38.0 [email protected] github.com
github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h [email protected] github.com
docs.docker.com/engine/release-notes/29 [email protected] docs.docker.com
github.com/docker/compose/releases/tag/v5.4.0 [email protected] github.com
github.com/docker/cli/releases/tag/v29.7.0 [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Ron Masas (Imperva) and other independent reports (en)

Additional Advisory Data

Workarounds

CNA: Only extract trusted archives.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report