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
Downstream
Related
Published
2026-05-07T19:21:40Z
Modified
2026-08-31T10:26:51Z
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
{
    "review_status":  "REVIEWED",
    "url":  "https://pkg.go.dev/vuln/GO-2026-4979"
}
References
Credits
    • Harshit Gupta (Mr HAX)

Affected packages

Go / toolchain

Package

Name
toolchain
View open source insights on deps.dev
Purl
pkg:golang/toolchain

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown 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"