CVE-2018-6574
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"...
CVE-2018-6574 is a high vulnerability (CVSS 7.8) in Golang Go, published February 7, 2018. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 7.62%, the 94th percentile. Fixed in go 1.9.4-r0.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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.
- Record
CVE-2018-6574- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-94
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-6574- Updated
- 2026-11-02
EUVDEUVD-2018-18324 No score
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.
- Record
EUVD-2018-18324- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-c37c-qq99-c897
7.8
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"...
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.
- Record
GHSA-c37c-qq99-c897- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-94
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-6574
7.8
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.
- Record
ALPINE-CVE-2018-6574- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVBELL-CVE-2018-6574
7.8
CVE-2018-6574 does not affect BellSoft software
- Record
BELL-CVE-2018-6574- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 15 moreShow less
OSV
7.8
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.
- Record
CVE-2018-6574- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2018:0878
7.5
Red Hat Security Advisory: golang security, bug fix, and enhancement update
- Record
RHSA-2018:0878- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2018:1304
5.8
Red Hat Security Advisory: go-toolset-7 and go-toolset-7-golang security and bug fix update
- Record
RHSA-2018:1304- CVSS 3.0
- 5.8 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-6574
7.8
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.
- Record
UBUNTU-CVE-2018-6574- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGO-2022-0201 No score
Remote command execution via "go get" command with cgo in cmd/go
The "go get" command with cgo is vulnerable to remote command execution by leveraging the gcc or clang plugin feature.
When cgo is enabled, the build step during "go get" invokes the host C compiler, gcc or clang, adding compiler flags specified in the Go source files. Both gcc and clang support a plugin mechanism in which a shared-library plugin is loaded into the compiler, as directed by compiler flags. This means that a Go package repository can contain an attack.so file along with a Go source file that says (for example) "// #cgo CFLAGS: -fplugin=attack.so" causing the attack plugin to be loaded into the host C compiler during the build. Gcc and clang plugins are completely unrestricted in their access to the host system.
- Record
GO-2022-0201- Updated
- 2026-11-02
OSVMGASA-2018-0144 No score
Updated golang packages fix security vulnerability
Updated golang packages fix security vulnerabilities:
Go before 1.9.4 allows "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 (CVE-2018-6574).
- Record
MGASA-2018-0144- Updated
- 2026-11-02
OSVopenSUSE-SU-2018:0588-1 No score
Security update for go
This update for go fixes the following issues:
Security issues fix in version 1.9.4:
- CVE-2018-6574: 'go get' remote command execution during source code build (bsc#1080006).
Bug fixes:
- bsc#1082409: Review dependencies (requires, recommends and supports).
This update was imported from the SUSE:SLE-12:Update update project.
- Record
openSUSE-SU-2018:0588-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2018:0589-1 No score
Security update for go
This update for go fixes the following issues:
Security issues fix in version 1.9.4:
- CVE-2018-6574: 'go get' remote command execution during source code build (bsc#1080006).
Bug fixes:
- bsc#1082409: Review dependencies (requires, recommends and supports).
This update was imported from the SUSE:SLE-12:Update update project.
- Record
openSUSE-SU-2018:0589-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2018:0628-1 No score
Security update for go1.8
This update for go1.8 fixes the following issues:
Security issues fixed:
- CVE-2018-6574: 'go get' allows for remote command execution during source code build (bsc#1080006).
Bug fixes:
- bsc#1082409: Review dependencies (requires, recommends and supports)
This update was imported from the SUSE:SLE-12:Update update project.
- Record
openSUSE-SU-2018:0628-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2018:0629-1 No score
Security update for go1.8
This update for go1.8 fixes the following issues:
Security issues fixed:
- CVE-2018-6574: 'go get' allows for remote command execution during source code build (bsc#1080006).
Bug fixes:
- bsc#1082409: Review dependencies (requires, recommends and supports)
This update was imported from the SUSE:SLE-12:Update update project.
- Record
openSUSE-SU-2018:0629-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10802-1 No score
go-1.17-1.1 on GA media
These are all security issues fixed in the go-1.17-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10802-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10803-1 No score
go1.10-1.10.8-8.2 on GA media
These are all security issues fixed in the go1.10-1.10.8-8.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10803-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10804-1 No score
go1.11-1.11.13-10.5 on GA media
These are all security issues fixed in the go1.11-1.11.13-10.5 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10804-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10805-1 No score
go1.12-1.12.17-4.8 on GA media
These are all security issues fixed in the go1.12-1.12.17-4.8 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10805-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10812-1 No score
go1.9-1.9.7-11.2 on GA media
These are all security issues fixed in the go1.9-1.9.7-11.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10812-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
goAlpine:v3.10 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.11 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.12 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.13 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.14 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.15 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.16 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.17 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.18 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.19 |
before 1.9.4-r0 | 1.9.4-r0 |
Show 39 moreShow less
| Package | Affected | Fixed |
|---|---|---|
goAlpine:v3.20 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.21 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.22 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.23 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.24 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.7 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.8 |
before 1.9.4-r0 | 1.9.4-r0 |
goAlpine:v3.9 |
before 1.9.4-r0 | 1.9.4-r0 |
go1.10Alpine:v3.7 |
before 1.9.4-r0 | 1.9.4-r0 |
golang-1.8Debian:9 |
before 1.8.1-1+deb9u1, plus listed versions 1.8.1-1 |
1.8.1-1+deb9u1 |
toolchainGo |
before 1.8.7, 1.9.0-0 up to 1.9.4 | 1.8.71.9.4 |
golangMageia:6 |
before 1.9.4-3.mga6 | 1.9.4-3.mga6 |
golangRed Hat:enterprise_linux:7::server |
before 0:1.9.4-1.el7 | 0:1.9.4-1.el7 |
golang-binRed Hat:enterprise_linux:7::server |
before 0:1.9.4-1.el7 | 0:1.9.4-1.el7 |
golang-docsRed Hat:enterprise_linux:7::server |
before 0:1.9.4-1.el7 | 0:1.9.4-1.el7 |
golang-miscRed Hat:enterprise_linux:7::server |
before 0:1.9.4-1.el7 | 0:1.9.4-1.el7 |
golang-srcRed Hat:enterprise_linux:7::server |
before 0:1.9.4-1.el7 | 0:1.9.4-1.el7 |
golang-testsRed Hat:enterprise_linux:7::server |
before 0:1.9.4-1.el7 | 0:1.9.4-1.el7 |
go-toolset-7Red Hat:devtools:2018 |
before 0:1.8-14.el7 | 0:1.8-14.el7 |
go-toolset-7-buildRed Hat:devtools:2018 |
before 0:1.8-14.el7 | 0:1.8-14.el7 |
go-toolset-7-golangRed Hat:devtools:2018 |
before 0:1.8.7-2.el7 | 0:1.8.7-2.el7 |
go-toolset-7-golang-binRed Hat:devtools:2018 |
before 0:1.8.7-2.el7 | 0:1.8.7-2.el7 |
go-toolset-7-golang-docsRed Hat:devtools:2018 |
before 0:1.8.7-2.el7 | 0:1.8.7-2.el7 |
go-toolset-7-golang-miscRed Hat:devtools:2018 |
before 0:1.8.7-2.el7 | 0:1.8.7-2.el7 |
go-toolset-7-golang-srcRed Hat:devtools:2018 |
before 0:1.8.7-2.el7 | 0:1.8.7-2.el7 |
go-toolset-7-golang-testsRed Hat:devtools:2018 |
before 0:1.8.7-2.el7 | 0:1.8.7-2.el7 |
go-toolset-7-runtimeRed Hat:devtools:2018 |
before 0:1.8-14.el7 | 0:1.8-14.el7 |
go-toolset-7-scldevelRed Hat:devtools:2018 |
before 0:1.8-14.el7 | 0:1.8-14.el7 |
go-toolset-7-golang-raceRed Hat:devtools:2018 |
before 0:1.8.7-2.el7 | 0:1.8.7-2.el7 |
golang-1.6Ubuntu:16.04:LTS |
All versions, plus listed versions 1.6-0ubuntu11.6-0ubuntu21.6-0ubuntu31.6-0ubuntu41.6-0ubuntu5 Show 5 moreShow less1.6.1-0ubuntu11.6.2-0ubuntu5~16.041.6.2-0ubuntu5~16.04.21.6.2-0ubuntu5~16.04.31.6.2-0ubuntu5~16.04.4 |
None known |
golang-1.8Ubuntu:18.04:LTS |
All versions, plus listed versions 1.8.3-2ubuntu11.8.3-2ubuntu1.18.04.1 |
None known |
goSUSE:Package Hub 12 |
before 1.9.4-15.1 | 1.9.4-15.1 |
go1.9SUSE:Package Hub 12 |
before 1.9.4-5.1 | 1.9.4-5.1 |
go1.8SUSE:Package Hub 12 |
before 1.8.7-5.1 | 1.8.7-5.1 |
goopenSUSE:Tumbleweed |
before 1.17-1.1 | 1.17-1.1 |
go1.10openSUSE:Tumbleweed |
before 1.10.8-8.2 | 1.10.8-8.2 |
go1.11openSUSE:Tumbleweed |
before 1.11.13-10.5 | 1.11.13-10.5 |
go1.12openSUSE:Tumbleweed |
before 1.12.17-4.8 | 1.12.17-4.8 |
go1.9openSUSE:Tumbleweed |
before 1.9.7-11.2 | 1.9.7-11.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | acole76/cve-2018-6574 | 2018-04-02 |
| PoC in GitHub | neargle/Go-Get-RCE-CVE-2018-6574-POC | 2018-04-24 |
| PoC in GitHub | wb4r/go-get-rce | 2018-05-17 |
| PoC in GitHub | ahmetmanga/cve-2018-6574 | 2018-05-20 |
| PoC in GitHub | ahmetmanga/go-get-rce | 2018-05-20 |
| PoC in GitHub | redirected/cve-2018-6574 | 2018-11-01 |
| PoC in GitHub | 20matan/CVE-2018-6574-POC | 2018-12-16 |
| PoC in GitHub | zur250/Zur-Go-GET-RCE-Solution | 2018-12-25 |
| PoC in GitHub | mekhalleh/cve-2018-6574 | 2018-12-30 |
| PoC in GitHub | veter069/go-get-rce | 2019-01-10 |
Show 15 moreShow less
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | duckzsc2/CVE-2018-6574-POC | 2019-01-18 |
| PoC in GitHub | qweraqq/CVE-2018-6574 | 2019-04-08 |
| PoC in GitHub | d4rkshell/go-get-rce | 2019-04-19 |
| PoC in GitHub | chaosura/CVE-2018-6574 | 2019-05-16 |
| PoC in GitHub | french560/ptl6574 | 2019-07-22 |
| PoC in GitHub | InfoSecJack/CVE-2018-6574 | 2019-09-19 |
| PoC in GitHub | asavior2/CVE-2018-6574 | 2019-10-28 |
| PoC in GitHub | drset/golang | 2019-11-29 |
| PoC in GitHub | frozenkp/CVE-2018-6574 | 2019-12-02 |
| PoC in GitHub | kev-ho/cve-2018-6574-payload | 2020-01-02 |
| PoC in GitHub | sdosis/cve-2018-6574 | 2020-01-06 |
| PoC in GitHub | No1zy/CVE-2018-6574-PoC | 2020-01-18 |
| PoC in GitHub | nthuong95/CVE-2018-6574 | 2020-03-04 |
| PoC in GitHub | AdriVillaB/CVE-2018-6574 | 2020-03-06 |
| PoC in GitHub | yitingfan/CVE-2018-6574_demo | 2020-03-16 |
Plus 66 more. The full list has every link.
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | affected, aliases, references | OSV |
| 2026-11-03 | exploits, exploits_more | |
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
References
access.redhat.com/errata/RHSA-2018:1304
access.redhat.com/errata/RHSA-2018:0878
debian.org/security/2019/dsa-4380
github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574
groups.google.com/forum
github.com/golang/go/issues/23672
Show 51 moreShow less
nvd.nist.gov/vuln/detail/CVE-2018-6574
github.com/advisories/GHSA-c37c-qq99-c897
security.alpinelinux.org/vuln/CVE-2018-6574
docs.bell-sw.com/security/cves/CVE-2018-6574
go.googlesource.com/go/+/1dcb5836ad2c60776561da2923c70576ba2eefc6
go.dev/issue/23672
groups.google.com/g/golang-nuts/c/Gbhh1NxAjMU
advisories.mageia.org/MGASA-2018-0144.html
bugs.mageia.org/show_bug.cgi?id=22646
lists.fedoraproject.org/archives/list/[email protected]/thread/C4TOPVSIULS5EMGKZ6OHC6LNDR7QA7W3
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-US/red_hat_enterprise_linux/7/html/7.5_release_notes/index.html
bugzilla.redhat.com/show_bug.cgi?id=1498867
bugzilla.redhat.com/show_bug.cgi?id=1498870
bugzilla.redhat.com/show_bug.cgi?id=1543561
security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_0878.json
access.redhat.com/security/cve/CVE-2017-15041
cve.org/CVERecord?id=CVE-2017-15041
nvd.nist.gov/vuln/detail/CVE-2017-15041
access.redhat.com/security/cve/CVE-2017-15042
cve.org/CVERecord?id=CVE-2017-15042
nvd.nist.gov/vuln/detail/CVE-2017-15042
access.redhat.com/security/cve/CVE-2018-6574
cve.org/CVERecord?id=CVE-2018-6574
access.redhat.com/documentation/en-us/red_hat_developer_tools/2018.2/html/using_go_toolset
access.redhat.com/support/offerings/techpreview
bugzilla.redhat.com/show_bug.cgi?id=1536154
bugzilla.redhat.com/show_bug.cgi?id=1550079
security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_1304.json
ubuntu.com/security/CVE-2018-6574
bugzilla.suse.com/1080006
bugzilla.suse.com/1082409
suse.com/security/cve/CVE-2018-6574
suse.com/security/cve/CVE-2016-5386
suse.com/security/cve/CVE-2017-15041
suse.com/security/cve/CVE-2017-15042
suse.com/security/cve/CVE-2017-8932
suse.com/security/cve/CVE-2018-16873
suse.com/security/cve/CVE-2018-16874
suse.com/security/cve/CVE-2018-16875
suse.com/security/cve/CVE-2018-7187
suse.com/security/cve/CVE-2019-6486
suse.com/security/cve/CVE-2014-7189
suse.com/security/cve/CVE-2015-8618
suse.com/security/cve/CVE-2016-3959
suse.com/security/cve/CVE-2019-14809
suse.com/security/cve/CVE-2019-9512
suse.com/security/cve/CVE-2019-9514
suse.com/security/cve/CVE-2019-11888
suse.com/security/cve/CVE-2019-16276
suse.com/security/cve/CVE-2019-17596