CVE-2021-3115
HIGH 7.5CVSS 3.1Arbitrary code injection via the go command with cgo on Windows in cmd/go
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).
- Published
- 26 Jan 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-427
- Also known as
- BIT-golang-2021-3115GO-2021-0068
- Sources
- NVDJSONOSV GO-2021-0068JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.14.14 | 1.14.14 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.15, < 1.15.7 | 1.15.7 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | netapp | cloud_insights_telegraf_agentcpe:2.3:a:netapp:cloud_insights_telegraf_agent:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | storagegridcpe:2.3:a:netapp:storagegrid:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Go | toolchain | < 1.14.14; >= 1.15.0-0, < 1.15.7 | 1.14.14, 1.15.7 |
References
- https://blog.golang.org/path-security · Vendor Advisory
- https://groups.google.com/g/golang-announce/c/mperVMGa98w · Release Notes, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/
- https://security.gentoo.org/glsa/202208-02 · Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210219-0001/ · Third Party Advisory
- https://go.dev/cl/284783 · FIX
- https://go.googlesource.com/go/+/953d1feca9b21af075ad5fc8a3dad096d3ccc3a0 · FIX
- https://go.dev/issue/43783 · REPORT
- https://groups.google.com/g/golang-announce/c/mperVMGa98w/m/yo5W5wnvAAAJ · WEB
- https://go.dev/cl/284780 · FIX
- https://go.googlesource.com/go/+/46e2e2e9d99925bbf724b12693c6d3e27a95d6a0 · FIX
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Jan 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)