CVE-2020-28366Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
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.
What to do
Fixed builds are available from Alpine, Go, Red Hat: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 14.04 | golang | Fix pending | ||
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2020-28366 | |
| Ubuntu 14.04 | golang-1.6 | Fix pending | ||
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.4.1-1.module+el8.3.0+7840+63dfb1ed | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | golang-race | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.14.12-1.module+el8.3.0+8784+380394dc | RHSA-2020:5493 |
| Red Hat Enterprise Linux 7 | cpp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc-c++ | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc-gfortran | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc-gnat | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc-go | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc-objc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc-objc++ | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | gcc-plugin-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-bin | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-misc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-src | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | golang-tests | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libasan | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libasan-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libatomic | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libatomic-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgcc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgfortran | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgfortran-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgnat | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgnat-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgnat-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgo | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgo-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgo-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgomp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libitm | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libitm-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libitm-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libmudflap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libmudflap-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libmudflap-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libobjc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libquadmath | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libquadmath-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libquadmath-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libstdc++ | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libstdc++-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libstdc++-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libstdc++-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libtsan | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libtsan-static | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.23 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.22 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.21 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.20 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.19 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.18 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.17 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.16 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.15 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.14 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Alpine Linux 3.13 | go | Fixed | 1.15.5-r0 | ALPINE-CVE-2020-28366 |
| Go library | toolchain | Fixed | 1.14.12 | GO-2022-0475 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go toolchain cmd/go: affected: before 1.14.12, 1.15.0-0 to before 1.15.5; fixed in
1.14.12,1.15.5 - Go toolchain cmd/cgo: affected: before 1.14.12, 1.15.0-0 to before 1.15.5; fixed in
1.14.12,1.15.5
References
- https://go.dev/cl/269658
- https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292
- https://go.dev/issue/42559
- https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM
- https://pkg.go.dev/vuln/GO-2022-0475
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.