Skip to content
Fencer Vulns
high 7.8

CVE-2018-6574 json

Remote command execution via "go get" command with cgo in cmd/go

published 2018-02-07 8 y ago modified 2026-06-17 4 mo ago also GO-2022-0201 , EUVD-2018-18324

cvss
7.8
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
7.6%
EPSS 7.6% chance of exploitation in 30 days, percentile 94%
public exploits
0
none known

Summary

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.

Patch / fix

  • go toolchain 1.8.7, 1.9.4
  • go-toolset-7 devtools 2018 1.8-14.el7
  • go-toolset-7-golang devtools 2018 1.8.7-2.el7
  • go-toolset-7-build devtools 2018 1.8-14.el7
  • go-toolset-7-runtime devtools 2018 1.8-14.el7
  • go-toolset-7-scldevel devtools 2018 1.8-14.el7
  • go-toolset-7-golang-bin devtools 2018 1.8.7-2.el7
  • go-toolset-7-golang-src devtools 2018 1.8.7-2.el7
  • go-toolset-7-golang-misc devtools 2018 1.8.7-2.el7

red hat advisories RHSA-2018:1304RHSA-2018:0878

  • go openSUSE Tumbleweed 1.17-1.1
  • go1.10 openSUSE Tumbleweed 1.10.8-8.2
  • go1.11 openSUSE Tumbleweed 1.11.13-10.5
  • go1.12 openSUSE Tumbleweed 1.12.17-4.8
  • go1.9 openSUSE Tumbleweed 1.9.7-11.2
  • go1.8 Package Hub 12 1.8.7-5.1
  • go Package Hub 12 1.9.4-15.1
  • go1.9 Package Hub 12 1.9.4-5.1

opensuse advisories openSUSE-SU-2024:10802-1openSUSE-SU-2024:10803-1openSUSE-SU-2024:10804-1openSUSE-SU-2024:10805-1openSUSE-SU-2024:10812-1openSUSE-SU-2018:0628-1

  • go Alpine 3.24, Alpine 3.23, Alpine 3.22 +15 more 1.9.4-r0
  • go1.10 Alpine 3.7 1.9.4-r0

alpine advisories ALPINE-CVE-2018-6574

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • go Arch Linux 1.9.4-1

arch linux advisories AVG-606

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-6574 updated cvss 5.8

golang: arbitrary code execution during "go get" via C compiler options

  • Red Hat OpenShift Enterprise 3 golang Red Hat OpenStack Platform 8 (Liberty) Operational Tools golang, golang-src, golang-pkg-linux-amd64, golang-pkg-bin-linux-amd64 Red Hat OpenStack Platform 9 (Mitaka) Operational Tools golang, golang-bin, golang-src
    affected: no fix planned “Will not fix”
  • Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) go-toolset-7 1.8-14.el7, go-toolset-7-build 1.8-14.el7, go-toolset-7-golang 1.8.7-2.el7, go-toolset-7-runtime 1.8-14.el7, go-toolset-7-scldevel 1.8-14.el7, go-toolset-7-golang-bin 1.8.7-2.el7, +4 more Red Hat Developer Tools for Red Hat Enterprise Linux Workstation (v. 7) go-toolset-7 1.8-14.el7, go-toolset-7-build 1.8-14.el7, go-toolset-7-golang 1.8.7-2.el7, go-toolset-7-runtime 1.8-14.el7, go-toolset-7-scldevel 1.8-14.el7, go-toolset-7-golang-bin 1.8.7-2.el7, +4 more
    fixed: vendor fix RHSA-2018:1304
  • Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) golang 1.9.4-1.el7, golang-bin 1.9.4-1.el7, golang-src 1.9.4-1.el7, golang-misc 1.9.4-1.el7, golang-tests 1.9.4-1.el7 Red Hat Enterprise Linux Server Optional (v. 7) golang 1.9.4-1.el7, golang-bin 1.9.4-1.el7, golang-src 1.9.4-1.el7, golang-misc 1.9.4-1.el7, golang-tests 1.9.4-1.el7
    fixed: vendor fix RHSA-2018:0878
  • Red Hat Ceph Storage 2 golang, golang-bin, golang-src Red Hat Ceph Storage 3 golang, golang-bin, golang-src Red Hat Storage 3 golang, golang-bin, golang-src, golang-misc, golang-tests
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

7.63% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/KINGSABRI/CVE-in-Ruby/tree/master/CVE-2018-6574 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 7.8 CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P

Affected packages

ecosystem package affected fixed in
go toolchain
<1.8.7
>=1.9.0-0, <1.9.4
1.8.7
1.9.4

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.