{"id":"CVE-2026-39817","published":"2026-05-07T19:41:18Z","modified":"2026-05-08T21:29:47Z","title":"Invoking \"go tool pack\" does not sanitize output paths in cmd/go","vendor":"Go toolchain","product":"cmd/go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00162,"percentile":0.02915,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/78778","tags":[]},{"url":"https://go.dev/cl/767520","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/qcCIEXso47M","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-4979","tags":[]}],"priority":{"score":4.7,"factors":[{"name":"EPSS percentile","points":0.58},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"go-toolchain","affectedVersions":[{"vendor":"Go toolchain","product":"cmd/go","versions":["< 1.25.10",">= 1.26.0-0, < 1.26.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-08T16:58:23.255142Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.25.10",">=1.26.0-0, <1.26.3"],"patched":["1.25.10","1.26.3"],"from":["GO-2026-4979"],"provenance":"source"}],"summary":{"text":"The \"go tool pack\" subcommand in the Go toolchain's cmd/go component does not sanitize output filenames, which is normally harmless because the compiler uses it only as an internal tool with known-good inputs. An attacker who can get a user to run the pack subcommand on a malicious archive file, which requires local access and some user interaction, can write files to arbitrary locations on the filesystem.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:13Z"},"euvd":{"id":"EUVD-2026-28421","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27140","published":"2026-04-08","fixed":"1.26.2","kev":false,"link":{"from":"CVE-2026-27140","to":"CVE-2026-39817","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.25.9","toFixed":"1.25.10","daysApart":29}]}},{"cve":"CVE-2026-27143","published":"2026-04-08","fixed":"1.26.2","kev":false},{"cve":"CVE-2026-27144","published":"2026-04-08","fixed":"1.26.2","kev":false},{"cve":"CVE-2026-39817","published":"2026-05-07","fixed":"1.26.3","kev":false},{"cve":"CVE-2026-39819","published":"2026-05-07","fixed":"1.26.3","kev":false},{"cve":"CVE-2026-42501","published":"2026-05-07","fixed":"1.26.3","kev":false},{"cve":"CVE-2026-56864","published":"2026-08-13","fixed":"1.27.0-rc.3","kev":false}],"package":"Go:toolchain"}}