Skip to main content
← All vulnerabilities
CVE-2020-28366GO-2022-0475BIT-GOLANG-2020-28366

Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo

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 a malicious unquoted symbol name in a linked object file.

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

  • cmd/cgo

    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 5

go.dev

go.googlesource.com

groups.google.com

pkg.go.dev