cve.bz

CVE-2018-6574 Code Injection

7.8 highExploit referenceEPSS 7.6%Fix available

High (7.8). EPSS 7.6% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.8.7, 1.9.4.

On this page
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.

Severity

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
EPSS
7.6% (unchanged from 7.6% a week ago; 7.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-6574 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6574?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6574?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-6574 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
golang:gothrough 1.8.6
golang:go1.9
golang:go1.9.1
golang:go1.9.2
golang:go1.9.3
golang:go1.10:beta1
golang:go1.10:beta2
golang:go1.10:rc1
debian:debian_linux9.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0201Gotoolchain<1.8.7
>=1.9.0-0 <1.9.4
1.8.7, 1.9.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9golang-1.81.8.1-1+deb9u1DSA-4380-1
Ubuntu16.04:LTSgolang-1.6no fix listedUBUNTU-CVE-2018-6574
Ubuntu18.04:LTSgolang-1.8no fix listedUBUNTU-CVE-2018-6574
Red Hatdevtools:2018go-toolset-7, go-toolset-7-build, go-toolset-7-runtime and 1 more0:1.8-14.el7RHSA-2018:1304
Red Hatdevtools:2018go-toolset-7-golang, go-toolset-7-golang-bin, go-toolset-7-golang-src and 4 more0:1.8.7-2.el7RHSA-2018:1304
Red Hatenterprise_linux:7::servergolang, golang-bin, golang-src and 3 more0:1.9.4-1.el7RHSA-2018:0878
SUSEPackage Hub 12go1.9.4-15.1openSUSE-SU-2018:0588-1 openSUSE-SU-2018:0589-1
SUSEPackage Hub 12go1.81.8.7-5.1openSUSE-SU-2018:0628-1 openSUSE-SU-2018:0629-1
SUSEPackage Hub 12go1.91.9.4-5.1openSUSE-SU-2018:0588-1 openSUSE-SU-2018:0589-1
openSUSETumbleweedgo1.17-1.1openSUSE-SU-2024:10802-1
openSUSETumbleweedgo1.101.10.8-8.2openSUSE-SU-2024:10803-1
openSUSETumbleweedgo1.111.11.13-10.5openSUSE-SU-2024:10804-1
openSUSETumbleweedgo1.121.12.17-4.8openSUSE-SU-2024:10805-1
openSUSETumbleweedgo1.91.9.7-11.2openSUSE-SU-2024:10812-1
Alpinev3.7go, go1.101.9.4-r0ALPINE-CVE-2018-6574
Alpinev3.8, v3.9, v3.10 and 14 morego1.9.4-r0ALPINE-CVE-2018-6574

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of golang as shipped with Red Hat OpenShift Enterprise 3. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

ProductPackageStateAdvisory
Red Hat Developer Toolsgo-toolset-7-0:1.8-14.el7Fixed 2018-05-03RHSA-2018:1304
Red Hat Developer Toolsgo-toolset-7-golang-0:1.8.7-2.el7Fixed 2018-05-03RHSA-2018:1304
Red Hat Enterprise Linux 7golang-0:1.9.4-1.el7Fixed 2018-04-10RHSA-2018:0878
Red Hat Ceph Storage 2golangNot affected
Red Hat Ceph Storage 3golangNot affected
Red Hat OpenShift Enterprise 3golangWill not fix
Red Hat OpenStack Platform 8 (Liberty) Operational ToolsgolangWill not fix
Red Hat OpenStack Platform 9 (Mitaka) Operational ToolsgolangWill not fix
Red Hat Storage 3golangNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-6574.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON