GO-2026-4978
Invoking "go bug" follows symlinks in predictable temporary filenames in cmd/go
At a glance
- Published
- Updated
- CVE
- CVE-2026-39819
- Aliases
- BIT-golang-2026-39819
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 packages
| Package | Versions |
|---|---|
| Go · toolchain | introduced 0, fixed 1.25.10, introduced 1.26.0-0, fixed 1.26.3 |
References
- https://go.dev/issue/78584 REPORT
- https://go.dev/cl/763882 FIX
- https://groups.google.com/g/golang-announce/c/qcCIEXso47M WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |