Live threats

All CVEs / Golang

CVE-2021-3115Golang Go

High 7.5 No auth needed

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
golanggo< 1.14.14
golanggo≥ 1.15 < 1.15.7
fedoraprojectfedora33
netappcloud_insights_telegraf_agentall
netappstoragegridall

Official sources

References

Links published by the sources. Open them with care.