Vulnerability Report: GO-2026-4978
standard library- CVE-2026-39819
- Affects: cmd/go
- Published: May 07, 2026
The "go bug" command writes to two files with predictable names in the system temporary directory (for example, "/tmp"). An attacker with access to the temporary directory can create a symlink in one of these names, causing "go bug" to overwrite the target of the symlink.
Affected Packages
-
PathGo VersionsSymbols
-
before go1.25.10, from go1.26.0-0 before go1.26.3all symbols
Aliases
References
- https://go.dev/issue/78584
- https://go.dev/cl/763882
- https://groups.google.com/g/golang-announce/c/qcCIEXso47M
- https://vuln.go.dev/ID/GO-2026-4978.json
Credits
- Harshit Gupta (Mr HAX)
Feedback
See anything missing or incorrect?
Suggest an edit to this report.