Intel

AIKIDO-2026-139363

github.com/moby/go-archive is vulnerable to Path Traversal

Path TraversalCVE-2026-17106 Published Aug 13, 2026

78

High Risk

This Affects:

GOgithub.com/moby/go-archive
0.1.0 - 0.2.1
Fixed in 0.3.0
Are you affected? Scan for Free

TL;DR

The Unpack, UnpackLayer, Untar/UntarUncompressed, and ApplyLayer helpers decide whether a symlink or hardlink target stays inside the destination directory using a plain string-prefix comparison on an unresolved path, instead of a check that accounts for how the operating system resolves links. A crafted archive can include links that pass this lexical check while resolving outside the intended extraction directory, creating or overwriting files elsewhere on the filesystem. The fix confines extraction path checks to resolved destinations so link targets cannot escape the intended directory.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and extract a tar archive that isn't fully trusted—directly or via a tool that bundles this library, such as Docker Engine, Docker CLI, Docker Desktop, Docker Sandboxes, or BuildKit.

Background info

github.com/moby/go-archive is vulnerable to Path Traversal in versions 0.1.0 - 0.2.1.

How to fix this

Upgrade the github.com/moby/go-archive library to the patch version.