CVE-2026-39817
JSON

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 packageVersionsReported by
cmd/gobefore 1.25.10, from 1.26.0-0 before 1.26.3CVE List
toolchain (Go)before 1.25.10, from 1.26.0-0 before 1.26.3Go Vulnerability Database
golang gobefore 1.25.10, from 1.26.0 before 1.26.3NVD
golang (Bitnami)before 1.25.10, from 1.26.0-0 before 1.26.3Bitnami Vulnerability Database

All scores

CISA-ADP5.9medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
NVD5.9medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-22CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-39817 changed 2026-05-08CVE Terms of Use
Go Vulnerability DatabaseGO-2026-4979 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-39817 changed 2026-11-11Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2026-39817 changed 2026-09-08Apache-2.0