ADVISORIES

Go Vulnerability Database

GO-2021-0068

Arbitrary code injection via the go command with cgo on Windows in cmd/go

Details

The go command may execute arbitrary code at build time when using cgo on Windows. This can be triggered by running go get on a malicious module, or any other time the code is built.

Affected packages

EcosystemPackageAffected versions
Gotoolchain
All versions before 1.14.14 (fixed in 1.14.14)
From 1.15.0-0 before 1.15.7 (fixed in 1.15.7)

References