{"id":"CVE-2021-3115","aliases":["CVE-2021-3115","GO-2021-0068","BIT-GOLANG-2021-3115"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary code injection via the go command with cgo on Windows in cmd/go","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"go"},{"lang":"es","text":"Go versiones anteriores a 1.14.14 y versiones 1.15. x anteriores a 1.15.7 en Windows, es vulnerable a una inyección de comandos y una ejecución de código remota cuando es usado el comando \"go get\" para buscar módulos que hacen uso de cgo (por ejemplo, cgo puede ejecutar un programa gcc desde una descarga que no es confiable)","source":"nvd"}],"published":"2021-01-26T02:14:51.000Z","modified":"2026-09-08T08:47:48.322Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","score":5.1,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.14.14"},{"type":"semver","introduced":"1.15.0-0","status":"affected","fixed":"1.15.7"}],"ecosystem":"Go","package":"toolchain","purl":"pkg:golang/toolchain","source":"go"},{"ranges":[{"status":"affected","fixed":"1.14.14"},{"status":"affected","introduced":"1.15","fixed":"1.15.7"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"cloud_insights_telegraf_agent","cpe":"cpe:2.3:a:netapp:cloud_insights_telegraf_agent:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"storagegrid","cpe":"cpe:2.3:a:netapp:storagegrid:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.14.14"},{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.15.7"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://groups.google.com/g/golang-announce/c/mperVMGa98w","tags":["advisory","release-notes","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://blog.golang.org/path-security","tags":["advisory","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YWAYJGXWC232SG3UR3TR574E6BP3OSQQ/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210219-0001/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["advisory","third-party-advisory","vendor-advisory","x-refsource-gentoo","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://go.dev/cl/284783","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/953d1feca9b21af075ad5fc8a3dad096d3ccc3a0","tags":["fix"],"sources":["go"]},{"url":"https://go.dev/issue/43783","tags":["report"],"sources":["go"]},{"url":"https://groups.google.com/g/golang-announce/c/mperVMGa98w/m/yo5W5wnvAAAJ","tags":["web"],"sources":["go"]},{"url":"https://go.dev/cl/284780","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/46e2e2e9d99925bbf724b12693c6d3e27a95d6a0","tags":["fix"],"sources":["go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3115","tags":["web"],"sources":["bitnami"]}],"credits":["RyotaK"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3115","url":"https://www.cve.org/CVERecord?id=CVE-2021-3115","licence":"CVE Terms of Use","modified":"2024-08-03T16:45:51.223Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0068","url":"https://pkg.go.dev/vuln/GO-2021-0068","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3115","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3115","licence":"Public domain","modified":"2026-06-17T04:04:41.610Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2021-3115","url":"https://osv.dev/vulnerability/BIT-GOLANG-2021-3115","licence":"Apache-2.0","modified":"2026-09-08T08:47:48.322Z"}],"updatedAt":"2026-11-25T22:57:59.728Z","epss":{"score":0.06905,"percentile":0.94222,"date":"2026-12-02T12:00:21.000Z"}}