5.3Medium

CVE-2026-39819Invoking "go bug" follows symlinks in predictable temporary filenames in cmd/go

Go toolchain cmd/go Published: (6 months ago)

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.

Weakness (CWE): CWE-377CWE-59

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go toolchain cmd/go < 1.25.10, 1.26.0-0 – < 1.26.3
golang go < 1.25.10

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.25.10
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.26.0 < 1.26.3