{"id":"CVE-2021-3115","published":"2021-01-26T02:14:51Z","modified":"2024-08-03T16:45:51Z","title":"Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution…","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06905,"percentile":0.94231,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/g/golang-announce/c/mperVMGa98w","tags":["x_refsource_CONFIRM"]},{"url":"https://blog.golang.org/path-security","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.netapp.com/advisory/ntap-20210219-0001/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":18.85}]},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.14.14",">=1.15.0-0, <1.15.7"],"patched":["1.14.14","1.15.7"],"from":["GO-2021-0068"],"provenance":"source"}],"summary":{"text":"The flaw lies in the Go toolchain on Windows, in the \"go get\" command's handling of modules that use cgo, affecting Go versions before 1.14.14 and 1.15.x before 1.15.7. It enables command injection and remote code execution, because cgo can run a gcc program that an attacker supplies inside an untrusted module being fetched; the attack requires a developer or build process to run \"go get\" against that module on a vulnerable Windows system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:07Z"},"euvd":{"id":"EUVD-2021-26467","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-16874","published":"2018-12-14","fixed":"1.11.3","kev":false},{"cve":"CVE-2020-28366","published":"2020-11-18","fixed":"1.15.5","kev":false,"link":{"from":"CVE-2020-28366","to":"CVE-2021-3115","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.14.12","toFixed":"1.14.14","daysApart":69}]}},{"cve":"CVE-2020-28367","published":"2020-11-18","fixed":"1.15.5","kev":false},{"cve":"CVE-2021-3115","published":"2021-01-26","fixed":"1.15.7","kev":false},{"cve":"CVE-2021-38297","published":"2021-10-18","fixed":"1.17.2","kev":false,"link":{"from":"CVE-2021-3115","to":"CVE-2021-38297","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.15.7","toFixed":"1.16.9","daysApart":265}]}},{"cve":"CVE-2022-23773","published":"2022-02-11","fixed":"1.17.7","kev":false},{"cve":"CVE-2023-29402","published":"2023-06-08","fixed":"1.20.5","kev":false}],"package":"Go:toolchain"}}