Linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo in cmd/go
CVE-2026-97037 · GHSA-f47v-97w8-qc5g · EUVD-2026-123108 · GO-2026-6854 · published 11 Nov 2026
How serious is it
- Severity: high, CVSS score 8.8 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-97037?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
toolchain(Go) < 1.26.11toolchain(Go) >= 1.27.0-0, < 1.27.4
How to check
- Run
go list -m toolchainin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- On < 1.26.11: Upgrade
toolchainto 1.26.11 or later, commit the lockfile and redeploy. - On >= 1.27.0-0, < 1.27.4: Upgrade
toolchainto 1.27.4 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via "#cgo LDFLAGS".
Split "-Wl," flags that consume a following argument (such as "-Wl,-rpath", "-Wl,--just-symbols", and "-Wl,-undefined") previously accepted a bare second argument without a "-Wl," prefix, which the compiler driver passes directly to the linker as a positional input file. Additionally, when using GNU ld.bfd, flags such as "-framework", "-Wl,-framework", "-Wl,-undefined", "-Wl,--just-symbols", "-Wl,-R", "-Wl,-subsystem", and (on non-Darwin platforms) "-Wl,-sectcreate" could cause ld.bfd to interpret their arguments as linker scripts if they named a regular file on disk.
The go command now requires a "-Wl," prefix on the second token of split "-Wl," flags (except "-Wl,-R"), verifies that these flags do not reference linker script files, and disallows bare "-Wl,--warn-backrefs-exclude".
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- go.dev/cl/862150
- go.dev/issue/82573
- groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- pkg.go.dev/vuln/GO-2026-6854
Merged from ENISA EUVD, OSV. Last updated 17 Nov 2026. All vulnerabilities · RSS · JSON