VDB
KO

GO-2026-4979

Invoking "go tool pack" does not sanitize output paths in cmd/go

Quick fix

GO-2026-4979 — toolchain: upgrade to the fixed version with the command below.

go get toolchain@v1.25.10

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / toolchain
Introduced in: 0 Fixed in: 1.25.10
Fix go get toolchain@v1.25.10

References