GO-2026-4978

Source
https://pkg.go.dev/vuln/GO-2026-4978
Import Source
https://vuln.go.dev/ID/GO-2026-4978.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2026-4978
Aliases
Related
Published
2026-05-07T19:21:40Z
Modified
2026-05-11T08:11:11.833995009Z
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").

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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-4978"
}
References
Credits
    • Harshit Gupta (Mr HAX)

Affected packages

Go / toolchain

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
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"