CVE-2026-39817

GO-2026-4979 · published 7 May 2026 · updated 14 Nov 2026

Invoking "go tool pack" does not sanitize output paths in cmd/go

5.9MediumCVSS 5.9EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.25.10, 1.26.3 and toolchain 1.26.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go toolchain<1.25.10, >=1.26.0-0 <1.26.31.25.10, 1.26.3
golanggo<1.25.10, >=1.26.0 <1.26.31.25.10, 1.26.3
go: toolchain>=1.26.0-0 <1.26.31.26.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in toolchain (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-39817 severity on Zeptric[![CVE-2026-39817](https://zeptric.io/badge/cve/CVE-2026-39817.svg)](https://zeptric.io/cve/CVE-2026-39817)