{"id":"CVE-2018-6574","published":"2018-02-07T21:00:00Z","modified":"2024-08-05T06:10:10Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.07625,"percentile":0.94699,"provenance":"source"},"cwes":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:1304","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0878","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.debian.org/security/2019/dsa-4380","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574","tags":["x_refsource_MISC"]},{"url":"https://groups.google.com/forum/#%21topic/golang-nuts/sprOaQ5m3Dk","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/golang/go/issues/23672","tags":["x_refsource_CONFIRM"]},{"url":"https://groups.google.com/forum/#%21topic/golang-nuts/Gbhh1NxAjMU","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.94},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":39,"skipped":52,"earliest":"2018-04-24","earliestUrl":"https://github.com/neargle/Go-Get-RCE-CVE-2018-6574-POC","repos":[{"name":"neargle/Go-Get-RCE-CVE-2018-6574-POC","url":"https://github.com/neargle/Go-Get-RCE-CVE-2018-6574-POC","stars":24,"created":"2018-04-24"},{"name":"frozenkp/CVE-2018-6574","url":"https://github.com/frozenkp/CVE-2018-6574","stars":2,"created":"2019-12-02"},{"name":"wb4r/go-get-rce","url":"https://github.com/wb4r/go-get-rce","stars":1,"created":"2018-05-17"},{"name":"Malone5923/CVE-2018-6574-go-get-RCE","url":"https://github.com/Malone5923/CVE-2018-6574-go-get-RCE","stars":1,"created":"2020-06-21"},{"name":"Devang-Solanki/CVE-2018-6574","url":"https://github.com/Devang-Solanki/CVE-2018-6574","stars":1,"created":"2021-10-15"}]},"first":{"date":"2018-04-24","source":"PoC-in-GitHub","url":"https://github.com/neargle/Go-Get-RCE-CVE-2018-6574-POC"},"provenance":"source"},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.8.7",">=1.9.0-0, <1.9.4"],"patched":["1.8.7","1.9.4"],"from":["GO-2022-0201"],"provenance":"source"}],"summary":{"text":"The flaw lies in the Go toolchain (Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before 1.10rc2), specifically in how the \"go get\" command handles compiler arguments during a source build. Because the -fplugin= and -plugin= arguments were not blocked, an attacker who can get \"go get\" to build a malicious package can leverage the gcc or clang plugin feature to execute arbitrary commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:56:53Z"},"euvd":{"id":"EUVD-2018-18324","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-15041","published":"2017-10-05","fixed":"1.9.1","kev":false,"link":{"from":"CVE-2017-15041","to":"CVE-2018-6574","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.8.4","toFixed":"1.8.7","daysApart":125}]}},{"cve":"CVE-2018-6574","published":"2018-02-07","fixed":"1.9.4","kev":false},{"cve":"CVE-2018-7187","published":"2018-02-16","fixed":"1.10.1","kev":false,"link":{"from":"CVE-2018-6574","to":"CVE-2018-7187","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.9.4","toFixed":"1.9.5","daysApart":9}]}},{"cve":"CVE-2018-16873","published":"2018-12-14","fixed":"1.11.3","kev":false},{"cve":"CVE-2018-16874","published":"2018-12-14","fixed":"1.11.3","kev":false}],"package":"Go:toolchain"}}