CVE-2018-6574
HIGH 7.8CVSS 3.0Remote command execution via "go get" command with cgo in cmd/go
Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allow "go get" remote command execution during source code build, by leveraging the gcc or clang plugin feature, because -fplugin= and -plugin= arguments were not blocked.
- Published
- 7 Feb 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GO-2022-0201
- Sources
- NVDJSONOSV GO-2022-0201JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
<= 1.8.6 | |
| NVD | golang | gocpe:2.3:a:golang:go:1.9:*:*:*:*:*:*:* |
= 1.9 | |
| NVD | golang | gocpe:2.3:a:golang:go:1.9.1:*:*:*:*:*:*:* |
= 1.9.1 | |
| NVD | golang | gocpe:2.3:a:golang:go:1.9.2:*:*:*:*:*:*:* |
= 1.9.2 | |
| NVD | golang | gocpe:2.3:a:golang:go:1.9.3:*:*:*:*:*:*:* |
= 1.9.3 | |
| NVD | golang | gocpe:2.3:a:golang:go:1.10:beta1:*:*:*:*:*:* |
= 1.10 | |
| NVD | golang | gocpe:2.3:a:golang:go:1.10:beta2:*:*:*:*:*:* |
= 1.10 | |
| NVD | golang | gocpe:2.3:a:golang:go:1.10:rc1:*:*:*:*:*:* |
= 1.10 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | redhat | enterprise_linux_servercpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| OSV | Go | toolchain | < 1.8.7; >= 1.9.0-0, < 1.9.4 | 1.8.7, 1.9.4 |
References
- https://access.redhat.com/errata/RHSA-2018:0878 · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1304 · Third Party Advisory
- https://github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574 · Exploit, Third Party Advisory
- https://github.com/golang/go/issues/23672 · Issue Tracking, Third Party Advisory
- https://groups.google.com/forum/#%21topic/golang-nuts/Gbhh1NxAjMU
- https://groups.google.com/forum/#%21topic/golang-nuts/sprOaQ5m3Dk
- https://www.debian.org/security/2019/dsa-4380 · Third Party Advisory
- https://go.googlesource.com/go/+/1dcb5836ad2c60776561da2923c70576ba2eefc6 · FIX
- https://go.dev/issue/23672 · REPORT
- https://groups.google.com/g/golang-nuts/c/Gbhh1NxAjMU · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 7 Feb 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Aug 2022)