CVE-2026-17106

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

State
Published
Severity
7.1 High
Published
Aug 18, 2026
Updated
Aug 19, 2026
Reserved
Jul 24, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.07.1 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NDocker

Weaknesses

  • CWE-59 Improper Link Resolution Before File Access ('Link Following')

Affected Products

ProductVersions
go-archivemoby
  • before 0.3.0Affected
Docker SandboxesDocker
  • before 0.38.0Affected
Docker DesktopDocker
  • before 4.86.0Affected
Docker EngineDocker
  • before 29.7.0Affected
Docker CLIDocker
  • before 29.7.0Affected
Docker ComposeDocker
  • before 5.4.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.