Vulnerability · Published Nov 18, 2020 · Assigned by Go

CVE-2020-28366Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo

High 7.5

In plain English

A high-severity security flaw in cmd/cgo from Go toolchain. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.3%top 16.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20go1.15.5-r0ALPINE-CVE-2020-28366
Alpine:v3.21go1.15.5-r0ALPINE-CVE-2020-28366
Alpine:v3.22go1.15.5-r0ALPINE-CVE-2020-28366
Alpine:v3.23go1.15.5-r0ALPINE-CVE-2020-28366
Alpine:v3.24go1.15.5-r0ALPINE-CVE-2020-28366
Gotoolchain1.14.12, 1.15.5GO-2022-0475

Affected products (as reported)

VendorProductVersions
Go toolchain cmd/go 0 – before 1.14.121.15.0-0 – before 1.15.5
Go toolchain cmd/cgo 0 – before 1.14.121.15.0-0 – before 1.15.5

References