CVE-2021-3115
Reported by mitre · Published January 26, 2021
toolchain is fixed in 1.15.7 and 1.14.14 (Go Modules)
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| toolchain | Go Modules | 1.15.7, 1.14.14 |
| golang-bin | Amazon Linux | 1.15.8-1.amzn2.0.1 |
| golang-misc | Amazon Linux | 1.15.8-1.amzn2.0.1 |
| golang-docs | Amazon Linux | 1.15.8-1.amzn2.0.1 |
| go | Arch Linux | 2:1.15.7-1 |
| golang | Amazon Linux | 1.15.8-1.amzn2.0.1 |
| go | Alpine | 1.15.7-r0 |
| golang-src | Amazon Linux | 1.15.8-1.amzn2.0.1 |
| golang | Bitnami | 1.15.7, 1.14.14 |
| go | golang | 1.15.7, 1.14.14 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | golang-bin | 0 |
| amazon:2 | golang-misc | 0 |
| amazon:2 | golang-docs | 0 |
| arch | go | 0 |
| amazon:2 | golang | 0 |
| alpine | go | 0 |
| amazon:2 | golang-src | 0 |
| amazon:2 | golang-race | 0 |
| n/a | n/a | * |
| amazon:2 | golang-tests | 0 |
Timeline
- Jan 26, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 3, 2024 CVE Updated
- Mar 10, 2026 Security Advisory (5 in total, the first dated here)
- Aug 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3115
vulnetix vdb fixes CVE-2021-3115
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3115/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- FEDORA-2021-e435a8bb88 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- GLSA-202208-02 vendor-advisoryx_refsource_GENTOO