Description
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 products
golang: go
References4
- pkg.go.dev/vuln/GO-2026-4978 Vendor Advisory
- go.dev/cl/763882 Patch
- go.dev/issue/78584 Issue Tracking
- groups.google.com/g/golang-announce/c/qcCIEXso47M Issue TrackingMailing List
Metrics
- CVSS 3.1
-
5.3
MEDIUM
Score source: NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N - EPSS — exploit probability
- 0% percentile: 8 · as of 13 November 2026
- CWE
- CWE-59
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.