Vulnerability · Published Nov 18, 2020 · Assigned by Go

CVE-2020-28367Arbitrary code execution via the go command with cgo in cmd/go

High 7.5

In plain English

A high-severity security flaw in cmd/go 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.4% (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.4%top 15.9% 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 malicious gcc flags specified via a #cgo directive.

Affected packages & fixed versions

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

Affected products (as reported)

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

References