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.
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-07 | Published |
| 2022-08-09 | Package advisory GO-2022-0201 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 7.63% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GO-2022-0201 | toolchain (Go) | 1.8.7, 1.9.4 |
Also known as: GO-2022-0201
Credited: Christopher Brown of Mattermost (other)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-97043 | 2026-11-11 | 8.8 | Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile |
| CVE-2026-97042 | 2026-11-11 | 8.8 | Linker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/link |
| CVE-2026-97041 | 2026-11-11 | 8.8 | Host linker flag injection via //go:cgo_* directives in cmd/compile and cmd/link |
| CVE-2026-97040 | 2026-11-11 | 9.8 | Cgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/link |
| CVE-2026-97039 | 2026-11-11 | 8.3 | Flag sanitization bypass via "#cgo pkg-config:" directives in cmd/go |
| CVE-2026-97038 | 2026-11-11 | 8.8 | Arbitrary code execution via crafted .syso files and cgo linker input files in cmd/go |
| CVE-2026-97037 | 2026-11-11 | 8.8 | Linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo in cmd/go |
| CVE-2026-97036 | 2026-11-11 | 8.8 | Arbitrary 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.