UNKNOWN Go

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

GO-2026-4979 · BIT-golang-2026-39817 · CVE-2026-39817

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes