All reports
Medium

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

Affected versions

Affected versions
<1.25.10 || >=1.26.0-0 <1.26.3
Fixed version
1.25.10 · 1.26.3
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-39819

Probability of exploitation in the next 30 days: 0.18%

FIRST EPSS · 2026-11-23

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.

Links

Credits

  • Harshit Gupta (Mr HAX)