Skip to main content
← All vulnerabilities
CVE-2020-28367GO-2022-0476BIT-GOLANG-2020-28367

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.14.12, 1.15.5
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • cmd/go

    fixed in 1.14.12; From 1.15.0-0 · fixed in 1.15.5

  • toolchainGo

    fixed in 1.14.12; From 1.15.0-0 · fixed in 1.15.5

References 6

go.dev

go.googlesource.com

groups.google.com

pkg.go.dev

lists.debian.org