Vulnerability
CVE-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 modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
19 advisories report this vulnerability, across 10 ecosystems.
Advisories in Red Hat
-
RHSA-2021:1339
Red Hat Security Advisory: Release of OpenShift Serverless Client kn 1.14.0 and security update
-
RHSA-2021:1746
Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update
-
RHSA-2021:2095
Red Hat Security Advisory: Release of OpenShift Serverless Client kn 1.14.1 security update
-
RHVEX-CVE-2021-3115
golang: cmd/go: packages using cgo can cause arbitrary code execution at build time
References
- https://blog.golang.org/path-security
- https://groups.google.com/g/golang-announce/c/mperVMGa98w
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/
- https://security.gentoo.org/glsa/202208-02
- https://security.netapp.com/advisory/ntap-20210219-0001/