CVE-2021-3115Golang Go
High 7.5 No auth needed
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.1
- 7.5
- EPSS
- 6.9% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Jan 26, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-427
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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).
What to do
- Apply the vendor's security update for Go.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | toolchain |
< 1.14.14 |
1.14.14 |
go get toolchain@v1.14.14 |
| Go | toolchain |
≥ 1.15.0-0 < 1.15.7 |
1.15.7 |
go get toolchain@v1.15.7 |
Per OSV / GitHub Advisories (GO-2021-0068). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.14.14 |
| golang | go | ≥ 1.15 < 1.15.7 |
| fedoraproject | fedora | 33 |
| netapp | cloud_insights_telegraf_agent | all |
| netapp | storagegrid | all |
Official sources
References
Links published by the sources. Open them with care.
- blog.golang.org Vendor Advisory
- groups.google.com Release Notes Third Party Advisory
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory