VDB

CVE-2021-3115

CVE-2021-3115 PUBLISHED

Reported by mitre · Published January 26, 2021

toolchain is fixed in 1.15.7 and 1.14.14 (Go Modules)

Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).

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.7, 1.14.14
golang-binAmazon Linux1.15.8-1.amzn2.0.1
golang-miscAmazon Linux1.15.8-1.amzn2.0.1
golang-docsAmazon Linux1.15.8-1.amzn2.0.1
goArch Linux2:1.15.7-1
golangAmazon Linux1.15.8-1.amzn2.0.1
goAlpine1.15.7-r0
golang-srcAmazon Linux1.15.8-1.amzn2.0.1
golangBitnami1.15.7, 1.14.14
gogolang1.15.7, 1.14.14

Affected products

VendorProductVersions
n/an/an/a
amazon:2golang-bin0
amazon:2golang-misc0
amazon:2golang-docs0
archgo0
amazon:2golang0
alpinego0
amazon:2golang-src0
amazon:2golang-race0
n/an/a*
amazon:2golang-tests0

Timeline

  • Jan 26, 2021 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Aug 3, 2024 CVE Updated
  • Mar 10, 2026 Security Advisory (5 in total, the first dated here)
  • Aug 2, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3115
vulnetix vdb fixes CVE-2021-3115

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-2021-3115/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 ›