github.com/google/go-containerregistry is vulnerable to Path Traversal
60
Medium Risk
Affected versions of this package allow mutate.Extract() to pass untrusted tar entry names and link targets without ensuring they remain within the intended extraction root, enabling path traversal, symlink escape, and absolute path injection during image export or flatten operations. An attacker could craft a malicious container image so that, when a victim extracts its contents, files are written outside the target directory or links are created to arbitrary host paths, potentially overwriting sensitive files or planting attacker-controlled content in fixed system locations.
You are affected if you are using a version that falls within the vulnerable range.
github.com/google/go-containerregistry is vulnerable to Path Traversal in versions 0.0.1 - 0.21.2.
Upgrade the github.com/google/go-containerregistry 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.

SOC 2Compliant
ISO 27001Compliant