CVE-2021-3115
published 2021-01-26CVE-2021-3115: Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch…
PriorityP351high7.5CVSS 3.1
AVNACHPRNUIRSUCHIHAH
EPSS
6.50%
92.9th percentile
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-1.15 | < golang-1.15 1.15.7-1 (bullseye) | golang-1.15 1.15.7-1 (bullseye) |
| fedoraproject | fedora | — | — |
| golang | go | < 1.14.14 | 1.14.14 |
| golang | go | >= 1.15 < 1.15.7 | 1.15.7 |
| 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 | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_python-tensorboard_2.11.0-3_on_cbl_mariner_2.0 | — | — |
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_redhat7.8HIGH
vendor_debian7.5HIGH
vendor_msrc7.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.
GHSA
GHSA-79cw-x93g-q95p: Go before 1
ghsa_unreviewed·2022-05-24
CVE-2021-3115 [HIGH] CWE-427 GHSA-79cw-x93g-q95p: Go before 1
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
OSV
Arbitrary code injection via the go command with cgo on Windows in cmd/go
osv·2021-04-14
CVE-2021-3115 Arbitrary code injection via the go command with cgo on Windows in cmd/go
Arbitrary code injection via the go command with cgo on Windows in cmd/go
The go command may execute arbitrary code at build time when using cgo on Windows. This can be triggered by running go get on a malicious module, or any other time the code is built.
OSV
CVE-2021-3115: Go before 1
osv·2021-01-26·CVSS 7.5
CVE-2021-3115 [HIGH] CVE-2021-3115: Go before 1
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
Red Hat
golang: cmd/go: packages using cgo can cause arbitrary code execution at build time
vendor_redhat·2021-01-20·CVSS 7.5
CVE-2021-3115 [HIGH] CWE-94 golang: cmd/go: packages using cgo can cause arbitrary code execution at build time
golang: cmd/go: packages using cgo can cause arbitrary code execution at build time
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
A flaw was found in golang: cmd/go, in which Go can execute arbitrary commands at build time when cgo is in use on Windows OS. On Linux/Unix, only users who have "." listed explicitly in their PATH variable are affected. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Statement: While OpenShift Container Platform (OCP), Red Hat OpenShift Jaeger (RHOSJ), OpenShift Service Mesh (OSSM) a
Microsoft
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example cg
vendor_msrc·2021-01-12·CVSS 7.5
CVE-2021-3115 [HIGH] CWE-427 Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example cg
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example cgo can execute a gcc program from an untrusted download).
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
Debian
CVE-2021-3115: golang-1.15 - Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command I...
vendor_debian·2021·CVSS 7.5
CVE-2021-3115 [HIGH] CVE-2021-3115: golang-1.15 - Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command I...
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
Scope: local
bullseye: resolved (fixed in 1.15.7-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://blog.golang.org/path-securityhttps://groups.google.com/g/golang-announce/c/mperVMGa98whttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/https://security.gentoo.org/glsa/202208-02https://security.netapp.com/advisory/ntap-20210219-0001/https://blog.golang.org/path-securityhttps://groups.google.com/g/golang-announce/c/mperVMGa98whttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/https://security.gentoo.org/glsa/202208-02https://security.netapp.com/advisory/ntap-20210219-0001/
2021-01-26
Published