blob: 1c6231d899f05f0889e0fc932b06cd7311401f9d [file]
{
"schema_version": "1.3.1",
"id": "GO-2026-4979",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2026-39817"
],
"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.",
"affected": [
{
"package": {
"name": "toolchain",
"ecosystem": "Go"
},
"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"
}
]
}
}
],
"references": [
{
"type": "REPORT",
"url": "https://go.dev/issue/78778"
},
{
"type": "FIX",
"url": "https://go.dev/cl/767520"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/qcCIEXso47M"
}
],
"credits": [
{
"name": "Harshit Gupta (Mr HAX)"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-4979",
"review_status": "REVIEWED"
}
}