{"id":"CVE-2026-39817","state":"PUBLISHED","title":"Invoking \"go tool pack\" does not sanitize output paths in cmd/go","description":"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.","publishedAt":"2026-05-07T19:41:18.993Z","updatedAt":"2026-05-08T21:29:47.246Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","source":"CISA-ADP"},"assigner":"Go","products":["Go toolchain cmd/go"],"affected":[{"vendor":"Go toolchain","product":"cmd/go","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.25.10","versionType":"semver"},{"version":"1.26.0-0","status":"affected","lessThan":"1.26.3","versionType":"semver"}],"collectionURL":"https://pkg.go.dev"}],"references":["https://go.dev/issue/78778","https://go.dev/cl/767520","https://groups.google.com/g/golang-announce/c/qcCIEXso47M","https://pkg.go.dev/vuln/GO-2026-4979"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:50.837Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/39xxx/CVE-2026-39817.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-39817","state":"PUBLISHED","datePublished":"2026-05-07T19:41:18.993Z","dateUpdated":"2026-05-08T21:29:47.246Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2026-04-07T18:13:03.524Z"},"containers":{"cna":{"title":"Invoking \"go tool pack\" does not sanitize output paths in cmd/go","descriptions":[{"lang":"en","value":"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":[{"vendor":"Go toolchain","product":"cmd/go","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.25.10","versionType":"semver"},{"version":"1.26.0-0","status":"affected","lessThan":"1.26.3","versionType":"semver"}],"collectionURL":"https://pkg.go.dev"}],"references":[{"url":"https://go.dev/issue/78778"},{"url":"https://go.dev/cl/767520"},{"url":"https://groups.google.com/g/golang-announce/c/qcCIEXso47M"},{"url":"https://pkg.go.dev/vuln/GO-2026-4979"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2026-05-07T19:41:18.993Z"},"credits":[{"lang":"en","value":"Harshit Gupta (Mr HAX)"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":5.9,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","integrityImpact":"HIGH","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-05-08T16:58:23.255142Z","id":"CVE-2026-39817","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-08T21:29:47.246Z"}}]}}}