CVE-2026-39817

MEDIUM5.9EPSS 0.01%

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

Published: 5/7/2026Modified: 5/15/2026

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 packages (7)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1MEDIUM5.9CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N

References (6)