# CVE-2021-3115: Arbitrary code injection via the go command with cgo on Windows in cmd/go

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.91%, higher than 94% of CVEs (2026-12-02)
- Published: 2021-01-26T02:14:51.000Z
- Modified: 2026-09-08T08:47:48.322Z
- Also known as: GO-2021-0068, BIT-GOLANG-2021-3115
- Weaknesses: CWE-427
- Assigned by: mitre

## Description

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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- toolchain (Go): before 1.14.14; from 1.15.0-0 before 1.15.7
- golang go: before 1.14.14; from 1.15 before 1.15.7
- fedoraproject fedora: 33
- netapp cloud_insights_telegraf_agent: no versions given
- netapp storagegrid: no versions given
- golang (Bitnami): before 1.14.14; from 1.15.0 before 1.15.7

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://groups.google.com/g/golang-announce/c/mperVMGa98w> (advisory, release-notes, third-party-advisory)
- <https://blog.golang.org/path-security> (advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210219-0001/> (advisory, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-02> (advisory, third-party-advisory, vendor-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)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3115> (web)

## Sources

- CVE List: [CVE-2021-3115](https://www.cve.org/CVERecord?id=CVE-2021-3115), CVE Terms of Use, modified 2024-08-03
- Go Vulnerability Database: [GO-2021-0068](https://pkg.go.dev/vuln/GO-2021-0068), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-3115](https://nvd.nist.gov/vuln/detail/CVE-2021-3115), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2021-3115](https://osv.dev/vulnerability/BIT-GOLANG-2021-3115), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-3115 · Whole record: https://cve.day/CVE-2021-3115.json · Rebuilt by cve.day 2026-11-25T22:57:59.728Z
