Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2020-28367

Arbitrary code execution via the go command with cgo in cmd/go

Description

Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows arbitrary code execution at build time via malicious gcc flags specified via a #cgo directive.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go toolchain cmd/go

Default version status: unaffected

  • 0 to < 1.14.12affected
  • 1.15.0-0 to < 1.15.5affected

References