CVE-2020-28367
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| toolchain | Go Modules | 1.15.5, 1.14.12 |
| cmd/go | Go Modules | 1.15.5, 1.14.12 |
| golang-docs | Amazon Linux | 1.15.5-1.amzn2.0.2 |
| golang-race | Amazon Linux | 1.15.5-1.amzn2.0.2 |
| go | Alpine | 1.15.5-r0 |
| golang | Amazon Linux | 1.15.5-1.amzn2.0.2 |
| golang | Bitnami | 1.15.5, 1.14.12 |
| golang-src | Amazon Linux | 1.15.5-1.amzn2.0.2 |
| golang-bin | Amazon Linux | 1.15.5-1.amzn2.0.2 |
| golang-misc | Amazon Linux | 1.15.5-1.amzn2.0.2 |
| golang-tests | Amazon Linux | 1.15.5-1.amzn2.0.2 |
| go | Arch Linux | 2:1.15.5-1 |
2 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go toolchain | cmd/go | 0, 1.15.0-0 |
| amazon:2 | golang-docs | 0 |
| amazon:2 | golang-race | 0 |
| alpine | go | 0 |
| amazon:2 | golang | 0 |
| Go toolchain | cmd/go | 1.15.0-0, 0 |
| amazon:2 | golang-src | 0 |
| amazon:2 | golang-bin | 0 |
| amazon:2 | golang-misc | 0 |
| amazon:2 | golang-tests | 0 |
| arch | go | 0 |
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