SecurityContext

CVE-2018-6574: Go - Command Injection

  • Cve: CVE-2018-6574
  • Name: Go - Command Injection
  • Description: 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.
  • Impact: Attackers can execute arbitrary commands during build, leading to remote code execution on the host system.
  • Remediation: Update to Go 1.8.7, 1.9.4, or latest stable release of Go 1.10 or newer.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.07625
  • Epss percentile: 0.94706
  • Assignee: [email protected]
  • Published at: 2018-02-07T21:29:00Z
  • Age in days: 3212
  • Modified at: 2026-06-17T02:02:02Z
  • Public exploits total: 92
  • References total: 7
  • Products total: 6
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-6574
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574nvd2018-02-07
https://github.com/s-p4rk/CVE-2018-6574poc-in-github2026-07-23
https://github.com/r00tpgp/CVE-2018-6574poc-in-github2026-04-23
https://github.com/hbxxv/CVE-2018-6574poc-in-github2026-01-25
https://github.com/Rezy-Dev/CVE-2018-6574poc-in-github2026-01-16

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574Exploit, Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0878Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:1304Third Party Advisory
https://github.com/golang/go/issues/23672Issue Tracking, Third Party Advisory
https://www.debian.org/security/2019/dsa-4380Third Party Advisory
https://groups.google.com/forum/#%21topic/golang-nuts/Gbhh1NxAjMU
https://groups.google.com/forum/#%21topic/golang-nuts/sprOaQ5m3Dk

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
golang:go= 1.10 beta2, = 1.10 beta1, = 1.10 rc1, = 1.9.3, = 1.9.2, = 1.9.1, = 1.9, <= 1.8.6/v1/products/golang/go
debian:debian_linux= 9.0/v1/products/debian/debian_linux
redhat:enterprise_linux_server= 7.0/v1/products/redhat/enterprise_linux_server
redhat:enterprise_linux_server_aus= 7.6/v1/products/redhat/enterprise_linux_server_aus
redhat:enterprise_linux_server_tus= 7.6/v1/products/redhat/enterprise_linux_server_tus
redhat:enterprise_linux_server_eus= 7.6/v1/products/redhat/enterprise_linux_server_eus

Projects

RepositoryLink kindsIndexedUrl
golang/gofix, issuesyes/v1/repositories/golang/go

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 92
  • Public exploit first date: 2018-02-07
  • Authentication required: yes
  • Exposed hosts: 4706702
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports