KeygraphLabs · CVE MCP

CVE-2018-6574 · mitre

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.

Published 2018-02-07, last changed 2026-06-17. Weakness: CWE-94.

CVSS
7.8
high, from NVD
EPSS
7.63%
percentile 94.7%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: toolchain 1.8.7, 1.9.4 (Go) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Timeline

2018-02-07Published
2022-08-09Package advisory GO-2022-0201
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 7.63%

Affected packages

AdvisoryPackageFixed in
GO-2022-0201toolchain (Go)1.8.7, 1.9.4

Also known as: GO-2022-0201

Credited: Christopher Brown of Mattermost (other)

Related

CVEPublishedCVSSSummary
CVE-2026-970432026-11-118.8Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile
CVE-2026-970422026-11-118.8Linker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/link
CVE-2026-970412026-11-118.8Host linker flag injection via //go:cgo_* directives in cmd/compile and cmd/link
CVE-2026-970402026-11-119.8Cgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/link
CVE-2026-970392026-11-118.3Flag sanitization bypass via "#cgo pkg-config:" directives in cmd/go
CVE-2026-970382026-11-118.8Arbitrary code execution via crafted .syso files and cgo linker input files in cmd/go
CVE-2026-970372026-11-118.8Linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo in cmd/go
CVE-2026-970362026-11-118.8Arbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2018-6574, or call /api/v1/vulnerabilities/CVE-2018-6574. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org