ADVISORIES

Go Vulnerability Database

GO-2026-4978

Invoking "go bug" follows symlinks in predictable temporary filenames in cmd/go

Details

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

EcosystemPackageAffected versions
Gotoolchain
All versions before 1.25.10 (fixed in 1.25.10)
From 1.26.0-0 before 1.26.3 (fixed in 1.26.3)

References