Vulnerability · Published Jan 26, 2021 · Assigned by mitre
CVE-2021-3115
High 7.5
In plain English
A high-severity security flaw in the go package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.9% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)6.9%top 5.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | go | 1.15.7-r0 | ALPINE-CVE-2021-3115 |
| Alpine:v3.21 | go | 1.15.7-r0 | ALPINE-CVE-2021-3115 |
| Alpine:v3.22 | go | 1.15.7-r0 | ALPINE-CVE-2021-3115 |
| Alpine:v3.23 | go | 1.15.7-r0 | ALPINE-CVE-2021-3115 |
| Alpine:v3.24 | go | 1.15.7-r0 | ALPINE-CVE-2021-3115 |
| Go | toolchain | 1.14.14, 1.15.7 | GO-2021-0068 |
| Rocky Linux:8 | delve | 0:1.5.0-2.module+el8.4.0+396+d2d16ae3 | RLSA-2021:1746 |
| Rocky Linux:8 | go-toolset | 0:1.15.7-1.module+el8.4.0+396+d2d16ae3 | RLSA-2021:1746 |
| Rocky Linux:8 | golang | 0:1.15.7-1.module+el8.4.0+396+d2d16ae3 | RLSA-2021:1746 |
Affected products (as reported)
References
- https://groups.google.com/g/golang-announce/c/mperVMGa98w x_refsource_CONFIRM
- https://blog.golang.org/path-security x_refsource_CONFIRM
- FEDORA-2021-e435a8bb88 vendor-advisory, x_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20210219-0001/ x_refsource_CONFIRM
- GLSA-202208-02 vendor-advisory, x_refsource_GENTOO