CVE-2026-17106 PUBLISHED

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

Assigner: Docker
Reserved: 24.07.2026 Published: 18.08.2026 Updated: 19.08.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. 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.

Metrics

CVSS Vector: 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
CVSS Score: 7.1

Product Status

Vendor moby
Product go-archive
Versions Default: unaffected
  • affected from 0 to 0.3.0 (excl.)
Vendor Docker
Product Docker Sandboxes
Versions Default: unaffected
  • affected from 0 to 0.38.0 (excl.)
Vendor Docker
Product Docker Desktop
Versions Default: unaffected
  • affected from 0 to 4.86.0 (excl.)
Vendor Docker
Product Docker Engine
Versions Default: unaffected
  • affected from 0 to 29.7.0 (excl.)
Vendor Docker
Product Docker CLI
Versions Default: unaffected
  • affected from 0 to 29.7.0 (excl.)
Vendor Docker
Product Docker Compose
Versions Default: unaffected
  • affected from 0 to 5.4.0 (excl.)

Workarounds

Only extract trusted archives.

Credits

  • Ron Masas (Imperva) and other independent reports finder

References

Problem Types

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