Vulnerability Report: GO-2026-4979
standard library- CVE-2026-39817
- Affects: cmd/go
- Published: May 07, 2026
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.
Affected Packages
-
PathGo VersionsSymbols
-
before go1.25.10, from go1.26.0-0 before go1.26.3all symbols
Aliases
References
- https://go.dev/issue/78778
- https://go.dev/cl/767520
- https://groups.google.com/g/golang-announce/c/qcCIEXso47M
- https://vuln.go.dev/ID/GO-2026-4979.json
Credits
- Harshit Gupta (Mr HAX)
Feedback
See anything missing or incorrect?
Suggest an edit to this report.