VDB

CVE-2020-28366

CVE-2020-28366 PUBLISHED

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

Reported by go · Published November 18, 2020

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
toolchainGo Modules1.15.5, 1.14.12
cmd/cgoGo Modules1.15.5, 1.14.12
cmd/goGo Modules1.15.5, 1.14.12
golang-testsAmazon Linux1.15.5-1.amzn2.0.2
golang-docsAmazon Linux1.15.5-1.amzn2.0.2
golangAmazon Linux1.15.5-1.amzn2.0.2
golang-binAmazon Linux1.15.5-1.amzn2.0.2
golang-miscAmazon Linux1.15.5-1.amzn2.0.2
golang-srcAmazon Linux1.15.5-1.amzn2.0.2
golang-raceAmazon Linux1.15.5-1.amzn2.0.2
golangBitnami1.15.5, 1.14.12
goArch Linux2:1.15.5-1

3 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
Go toolchaincmd/go0, 1.15.0-0
Go toolchaincmd/cgo0, 1.15.0-0
amazon:2golang-tests0
amazon:2golang-docs0
amazon:2golang0
amazon:2golang-bin0
amazon:2golang-misc0
amazon:2golang-src0
amazon:2golang-race0
archgo0
Go toolchaincmd/cgo0, 1.15.0-0
Go toolchaincmd/go0, 1.15.0-0
alpinego0

Timeline

  • Nov 18, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Aug 4, 2024 CVE Updated
  • Jun 1, 2026 Security Advisory (5 in total, the first dated here)
  • Sep 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-28366
vulnetix vdb fixes CVE-2020-28366

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-28366/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›