CVE-2020-28367: Arbitrary code execution via the go command with cgo in cmd/go
Vulnerability summary
CVE-2020-28367 is a high (CVSS 7.5) Improper Control of Generation of Code vulnerability in go toolchain cmd/go. EPSS estimates a 2.40% chance of exploitation in the next 30 days, higher than 84% of scored vulnerabilities.
Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 7Timeline
- 18-11-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.40%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.40% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu6 products
- golang-1.10All versions (No fix recorded)
- golang-1.13All versions (No fix recorded)
- golang-1.14All versions (No fix recorded)
- golang-1.6All versions (No fix recorded)
- golang-1.8All versions (No fix recorded)
Alpine1 product
- go≥ 1.15, < 1.15.5-r0
Debian1 product
- golang-1.15< 1.15.5-1
Go1 product
- toolchain≥ 1.15.0-0, < 1.15.5
Go toolchain1 product
- cmd/go< 1.14.12 | ≥ 1.15.0-0, < 1.15.5
Golang1 product
- go< 1.14.12 | ≥ 1.15, < 1.15.5
6 vendors · 11 products
References
12 links- go.dev/issue/42556REPORT