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.
https://pkg.go.dev/vuln/GO-2026-4979
Published: 2026-05-07
Updated: 2026-05-13
Named Vulnerability: GO-2026-4979Named Vulnerability: GHSA-qc64-m6c2-v4x7
Base Score: 4.6
Vector: CVSS2#AV:L/AC:L/Au:S/C:N/I:C/A:N
Severity: Medium
Base Score: 5.9
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
Severity: Medium
EPSS: 0.0017