GO-2026-4979

Source
https://pkg.go.dev/vuln/GO-2026-4979
Import Source
https://vuln.go.dev/ID/GO-2026-4979.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2026-4979
Aliases
Related
Published
2026-05-07T19:21:40Z
Modified
2026-05-11T08:11:26.978790087Z
Summary
Invoking "go tool pack" does not sanitize output paths in cmd/go
Details

The "go tool pack" subcommand (usually used only by the compiler as an internal tool with known-good inputs) does not sanitize output filenames. Extracting a malicious archive file with the "pack" subcommand can write files to arbitrary locations on the filesystem.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2026-4979",
    "review_status": "REVIEWED"
}
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-4979.json"