CVE-2021-3115
mediumpriority · track · 32EPSS 0.069 · 94 %ileEURUUSEPSS · scored 2026-10-27
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).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.1–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (14)
Products and version ranges known to be affected.
- netapp cloud insights telegraf agentall versionsnvdUScpe:2.3:a:netapp:cloud_insights_telegraf_agent:*:*:*:*:*:*:*:*
advisories (2)
Vendor and ecosystem advisories describing this.
- BIT-golang-2021-31152024-03-06vendor · osvUS
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).
- GO-2021-0068Arbitrary code injection via the go command with cgo on Windows in cmd/go2021-04-14vendor · osvUS
The go command may execute arbitrary code at build time when using cgo on Windows. This can be triggered by running go get on a malicious module, or any other time the code is built.
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202101-2392cnnvd
- EUVD-2021-26467enisa_euvd
- BDU:2021-01105fstec_bdu
- GHSA-79cw-x93g-q95penisa_euvd
- BIT-golang-2021-3115osv
- GO-2021-0068osv
sources
Which sources assert this record, and when.
references (35)
External citations — patches, advisories, analysis.
- https://blog.golang.org/path-securitycnnvd
- https://groups.google.com/g/golang-announce/c/mperVMGa98wcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-3115cnnvd
- https://packetstormsecurity.com/files/162306/Red-Hat-Security-Advisory-2021-1339-01.htmlcnnvd
- https://packetstormsecurity.com/files/162670/Red-Hat-Security-Advisory-2021-1746-01.htmlcnnvd
- https://packetstormsecurity.com/files/162755/Red-Hat-Security-Advisory-2021-2093-01.htmlcnnvd
- https://packetstormsecurity.com/files/167967/Gentoo-Linux-Security-Advisory-202208-02.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan