RCE in Golang Go
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" remote command execution during source code build, by leveraging the gcc or clang plugin feature, because -fplugin= and -plugin= arguments were not blocked.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.076, 94.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go — versions 1.9, 1.9.1, 1.9.2
- Debian Linux — versions 9.0
- Red Hat Enterprise Linux Server — versions 7.0
- Red Hat Enterprise Linux Server Aus — versions 7.6
- Red Hat Enterprise Linux Server Eus — versions 7.6
- Red Hat Enterprise Linux Server Tus — versions 7.6
Weakness classification (CWE)
Public exploits and proof-of-concept code
115 public repositories with exploit or proof-of-concept code for this CVE:
- neargle/Go-Get-RCE-CVE-2018-6574-POC (24 stars, last pushed 2022-01-14): CVE-2018-6574 POC : golang 'go get' remote command execution during source code build
- frozenkp/CVE-2018-6574 (2 stars, last pushed 2022-03-16)
- mux0x/CVE-2018-6574 (1 star, last pushed 2022-12-03)
- the-valluvarsploit/CVE-2018-6574 (1 star, last pushed 2022-03-24)
- ItsFadinG/CVE-2018-6574 (1 star, last pushed 2021-10-20)
- Devang-Solanki/CVE-2018-6574 (1 star, last pushed 2021-10-15): Exploit for remote command execution in Golang go get command.
- Malone5923/CVE-2018-6574-go-get-RCE (1 star, last pushed 2020-06-21): CVE-2018-6574: go get RCE solution for pentesterlab challenge
- wb4r/go-get-rce (1 star, last pushed 2018-05-17): CVE-2018-6574 for pentesterLAB
- s-p4rk/CVE-2018-6574 (last pushed 2026-07-23)
- r00tpgp/CVE-2018-6574 (last pushed 2026-04-23)
105 more are listed on the interactive page.
Also mentioned in 14 other repositories (0xT11/CVE-POC, ARPSyndicate/cvemon, doantung99/pentesterlab, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- RHSA-2018:1304 (vendor-advisory, Third Party Advisory)
- RHSA-2018:0878 (vendor-advisory, Third Party Advisory)
- DSA-4380 (vendor-advisory, Third Party Advisory)
- github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574 (Exploit, Third Party Advisory)
- groups.google.com/forum/
- github.com/golang/go/issues/23672 (Third Party Advisory, Issue Tracking)
- groups.google.com/forum/
This CVE has public exploit evidence. See the latest CVEs with public exploits.