CVE-2017-15041 · mitre
CVE-2017-15041
Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution. Using custom domains, it is possible to arrange things so that example.com/pkg1 points to a Subversion repository but example.com/pkg1/pkg2 points to a Git repository. If the Subversion repository includes a Git checkout in its pkg2 directory and some other work is done to ensure the proper ordering of operations, "go get" can be tricked into reusing this Git checkout for the fetch of code from pkg2. If the Subversion repository's Git checkout has malicious commands in .git/hooks/, they will execute on the system running "go get."
Published 2017-10-05, last changed 2026-06-17.
How to fix
Upgrade to a fixed version: toolchain 1.8.4, 1.9.1 (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
| 2017-10-05 | Published |
| 2022-08-09 | Package advisory GO-2022-0177 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 7.18% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GO-2022-0177 | toolchain (Go) | 1.8.4, 1.9.1 |
Also known as: GO-2022-0177
Credited: Simon Rawet (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-2017-15041, or call /api/v1/vulnerabilities/CVE-2017-15041. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.