Invoking "go tool pack" does not sanitize output paths in cmd/go
Historical advisory saved 14 Nov 2026 13:57:00 UTC. The publisher may have updated it since then. Latest advisory.
osv · GO-2026-4979
PublishedThe "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.
- Source published
- 7 May 2026 19:21:40 UTC
- Source modified
- 14 Nov 2026 13:12:13 UTC
- Saved here
- 14 Nov 2026 13:57:00 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.