5.9medium
Invoking "go tool pack" does not sanitize output paths in cmd/go
- Severity
- 5.9medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2026-4979BIT-GOLANG-2026-39817
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cmd/go | before 1.25.10, from 1.26.0-0 before 1.26.3 | CVE List |
| toolchain (Go) | before 1.25.10, from 1.26.0-0 before 1.26.3 | Go Vulnerability Database |
| golang go | before 1.25.10, from 1.26.0 before 1.26.3 | NVD |
| golang (Bitnami) | before 1.25.10, from 1.26.0-0 before 1.26.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 5.9medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
NVD (es)
El subcomando ’go tool pack’ (normalmente utilizado solo por el compilador como una herramienta interna con entradas de confianza) no sanea los nombres de archivo de salida. La extracción de un archivo comprimido malicioso con el subcomando ’pack’ puede escribir archivos en ubicaciones arbitrarias en el sistema de archivos.
References
| https://go.dev/issue/78778 | issue-tracking, report | |
| https://go.dev/cl/767520 | fix, patch | |
| https://groups.google.com/g/golang-announce/c/qcCIEXso47M | issue-tracking, mailing-list, report, web | |
| https://pkg.go.dev/vuln/GO-2026-4979 | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39817 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39817 changed 2026-05-08 | CVE Terms of Use |
| Go Vulnerability Database | GO-2026-4979 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-39817 changed 2026-11-11 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2026-39817 changed 2026-09-08 | Apache-2.0 |