Skip to main content
← All vulnerabilities
CVE-2026-17106GO-2026-6253BIT-DOCKER-CLI-2026-17106GHSA-HFG8-HC9C-6C3H

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.0, 0.38.0, 4.86.0, 29.7.0, 5.4.0
4 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

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. 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.

Timeline

  1. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  2. CVE published
  3. Record last updated

Affected versions

  • github.com/moby/go-archive

    fixed in 0.3.0

  • Docker Docker Sandboxes

    fixed in 0.38.0

  • Docker Docker Desktop

    fixed in 4.86.0

  • Docker Docker Engine

    fixed in 29.7.0

  • Docker Docker CLI

    fixed in 29.7.0

  • Docker Docker Compose

    fixed in 5.4.0

  • github.com/moby/go-archiveGo

    fixed in 0.3.0

References 11

GitHub · moby/go-archive

docs.docker.com

GitHub · docker/sbx-releases

GitHub · docker/cli

GitHub · docker/compose

GitHub · 686f6c61/POC-CopyEscape-CVE-2026-17106

GitHub · CompleTech-Security/copyescape-check

GitHub · HackSpeak/CVE-2026-17106

GitHub · masasron/CopyEscape-CVE-2026-17106