Go Toolchain Pack Subcmd Arbitrary File Write (1.251.26.2)
CVE-2026-39817 Published on May 7, 2026
Invoking "go tool pack" does not sanitize output paths in cmd/go
The "go tool pack" subcommand (usually used only by the compiler as an internal tool with known-good inputs) does not sanitize output filenames. Extracting a malicious archive file with the "pack" subcommand can write files to arbitrary locations on the filesystem.
Products Associated with CVE-2026-39817
Want to know whenever a new CVE is published for GoLang Go? stack.watch will email you.
Affected Versions
Go toolchain cmd/go:- Before 1.25.10 is affected.
- Version 1.26.0-0 and below 1.26.3 is affected.