Advisory

GO-2021-0068

Also known as: BIT-golang-2021-3115, CVE-2021-3115

Summary

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.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

toolchain

Go · All systems

Affected

  • introduced 0, fixed 1.14.14, introduced 1.15.0-0, fixed 1.15.7 (semver)

Fixed versions

1.14.14, 1.15.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences