VDB

CVE-2020-28367

CVE-2020-28367 PUBLISHED

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

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 malicious gcc flags specified via a #cgo directive.

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/goGo Modules1.15.5, 1.14.12
golang-docsAmazon Linux1.15.5-1.amzn2.0.2
golang-raceAmazon Linux1.15.5-1.amzn2.0.2
goAlpine1.15.5-r0
golangAmazon Linux1.15.5-1.amzn2.0.2
golangBitnami1.15.5, 1.14.12
golang-srcAmazon 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-testsAmazon Linux1.15.5-1.amzn2.0.2
goArch Linux2:1.15.5-1

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

Affected products

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

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-28367
vulnetix vdb fixes CVE-2020-28367

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-28367/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 ›