CVE-2020-28366
published 2020-11-18CVE-2020-28366: 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…
PriorityP344high7.5CVSS 3.1
AVNACHPRNUIRSUCHIHAH
EPSS
2.24%
80.7th percentile
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.
Affected
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-1.15 | < golang-1.15 1.15.5-1 (bullseye) | golang-1.15 1.15.5-1 (bullseye) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| go_toolchain | cmd_cgo | < 1.14.12 | 1.14.12 |
| go_toolchain | cmd_cgo | >= 1.15.0-0 < 1.15.5 | 1.15.5 |
| go_toolchain | cmd_go | < 1.14.12 | 1.14.12 |
| go_toolchain | cmd_go | >= 1.15.0-0 < 1.15.5 | 1.15.5 |
| golang | go | < 1.14.12 | 1.14.12 |
| golang | go | >= 1.15 < 1.15.5 | 1.15.5 |
| msrc | azl3_python-tensorboard_2.11.0-3_on_azure_linux_3.0 | — | — |
| msrc | azl3_python-tensorboard_2.16.2-1_on_azure_linux_3.0 | — | — |
| msrc | cbl2_python-tensorboard_2.11.0-3_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_golang_1.15.13-1_on_cbl_mariner_1.0 | — | — |
| msrc | golang-1.15.13-1.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm | — | — |
| msrc | golang-1.15.13-1.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64 | — | — |
| msrc | python3-tensorboard-2.16.2-2.azl3.x86_64.rpm_on_azure_linux_3.0_x64 | — | — |
| msrc | python3-tensorboard-data-server-2.16.2-2.azl3.x86_64.rpm_on_azure_linux_3.0_x64 | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.05.1MEDIUMAV:N/AC:H/Au:N/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
golang: malicious symbol names can lead to code execution at build time
vendor_redhat·2020-11-12·CVSS 7.5
CVE-2020-28366 [HIGH] CWE-20 golang: malicious symbol names can lead to code execution at build time
golang: malicious symbol names can lead to code execution at build time
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.
An input validation vulnerability was found in Go. From a generated go file (from the cgo tool), it is possible to modify symbols within that object file and specify code. This flaw allows an attacker to create a repository that includes malicious pre-built object files that could execute arbitrary code when downloaded and run via `go get` or `go build` while building a Go project. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Statement: While OpenShift Container Platform (OC
Microsoft
Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
vendor_msrc·2020-11-10·CVSS 7.5
CVE-2020-28366 [HIGH] CWE-94 Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
Go: Go
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https
Debian
CVE-2020-28366: golang-1.15 - Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows...
vendor_debian·2020·CVSS 7.5
CVE-2020-28366 [HIGH] CVE-2020-28366: golang-1.15 - Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows...
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.
Scope: local
bullseye: resolved (fixed in 1.15.5-1)
OSV
Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
osv·2022-07-28
CVE-2020-28366 Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
Arbitrary code execution in go command with cgo in cmd/go and cmd/cgo
The go command may execute arbitrary code at build time when cgo is in use. This may occur when running go get on a malicious package, or any other command that builds untrusted code.
This can be caused by malicious unquoted symbol name in a linked object file.
GHSA
GHSA-mwfg-6wv9-379f: Go before 1
ghsa_unreviewed·2022-05-24
CVE-2020-28366 [CRITICAL] CWE-94 GHSA-mwfg-6wv9-379f: Go before 1
Go before 1.14.12 and 1.15.x before 1.15.5 allows Code Injection.
OSV
CVE-2020-28366: Code injection in the go command with cgo before Go 1
osv·2020-11-18·CVSS 7.5
CVE-2020-28366 [HIGH] CVE-2020-28366: Code injection in the go command with cgo before Go 1
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://go.dev/cl/269658https://go.dev/issue/42559https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292https://groups.google.com/g/golang-announce/c/NpBGTTmKzpMhttps://pkg.go.dev/vuln/GO-2022-0475https://go.dev/cl/269658https://go.dev/issue/42559https://go.googlesource.com/go/+/062e0e5ce6df339dc26732438ad771f73dbf2292https://groups.google.com/g/golang-announce/c/NpBGTTmKzpMhttps://pkg.go.dev/vuln/GO-2022-0475
2020-11-18
Published