{"schema_version":"1.7.5","id":"GO-2026-4978","published":"2026-05-07T19:21:40Z","modified":"2026-08-31T10:25:58.739683911Z","aliases":["BIT-golang-2026-39819","CVE-2026-39819"],"related":["CGA-r6qx-g8x8-v264","RHSA-2026:22112","RHSA-2026:22120","RHSA-2026:22121","RHSA-2026:49702","RHSA-2026:49712","RHSA-2026:57649","RHSA-2026:61253"],"summary":"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\").\n\nAn 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":[{"package":{"name":"toolchain","ecosystem":"Go","purl":"pkg:golang/toolchain"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.10"},{"introduced":"1.26.0-0"},{"fixed":"1.26.3"}]}],"ecosystem_specific":{"imports":[{"path":"cmd/go"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2026-4978.json"}}],"references":[{"type":"REPORT","url":"https://go.dev/issue/78584"},{"type":"FIX","url":"https://go.dev/cl/763882"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/qcCIEXso47M"}],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2026-4978"},"credits":[{"name":"Harshit Gupta (Mr HAX)"}]}