{"id":"GO-2026-4978","revision":"fb6b6565c8f344588865f167c0390a9a","records":[{"revision":"fb6b6565c8f344588865f167c0390a9a","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-4978","aliases":["BIT-golang-2026-39819","CVE-2026-39819"],"title":"Invoking \"go bug\" follows symlinks in predictable temporary filenames in cmd/go","description":"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.","state":0,"publishedAt":"2026-05-07T19:21:40+00:00","modifiedAt":"2026-09-22T10:41:48.0653347+00:00","affected":[{"ecosystem":"Go","name":"toolchain","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.25.10"},{"kind":"introduced","version":"1.26.0-0"},{"kind":"fixed","version":"1.26.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/issue/78584","https://go.dev/cl/763882","https://groups.google.com/g/golang-announce/c/qcCIEXso47M"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-4978","license":"OSV · upstream source license applies","key":"osv:GO-2026-4978","identifiers":["GO-2026-4978","BIT-golang-2026-39819","CVE-2026-39819"]},"retained":false,"historicalAffected":[]}],"coverage":[]}