github.com/moby/go-archive is vulnerable to Path Traversal
78
High Risk
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.
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.
github.com/moby/go-archive is vulnerable to Path Traversal in versions 0.1.0 - 0.2.1.
Upgrade the github.com/moby/go-archive library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant