Home

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.

PUBLISHED Reserved 2026-04-07 | Published 2026-05-07 | Updated 2026-05-08 | Assigner Go

Problem types

CWE-377: Insecure Temporary File

Product status

Default status
unaffected

Any version before 1.25.10
affected

1.26.0-0 (semver) before 1.26.3
affected

Credits

Harshit Gupta (Mr HAX)

References

go.dev/issue/78584

go.dev/cl/763882

groups.google.com/g/golang-announce/c/qcCIEXso47M

pkg.go.dev/vuln/GO-2026-4978

cve.org (CVE-2026-39819)

nvd.nist.gov (CVE-2026-39819)

Download JSON