Back
CVE-2020-28366
Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
High7.5EPSS 2.3%
- Published
- Updated
- Reserved
- Assigned by
- Go
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 2.3% · top 16% of all CVEs (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
- CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-94 (opens in a new tab)All about CWE-94 and its CVEs
Affected products
- affected < 1.14.12
- affected 1.15.0-0 – < 1.15.5
- affected < 1.14.12
- affected 1.15.0-0 – < 1.15.5
References (5)
- https://go.dev/cl/269658 (opens in a new tab)x_transferred
- https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292 (opens in a new tab)x_transferred
- https://go.dev/issue/42559 (opens in a new tab)x_transferred
- https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM (opens in a new tab)x_transferred
- https://pkg.go.dev/vuln/GO-2022-0475 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-28366)Record last updated .