CVE-2026-97043: Golang · Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile
Affects golangSource GCVE Database
Not known to be exploited · CVSS 8.8 High : upgrade to 1.27.4 or 1.26.11 soon.
Data as of 27 Nov 2026, 09:00 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 8.8 |
|---|
- Patch
- Available – fixed in 1.27.4, 1.26.11
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 11 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade golang and toolchain to 1.27.4 or 1.26.11.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamigolangpkg:bitnami/golangOther threats | Affected
| Fixed in
|
Gotoolchainpkg:golang/toolchainOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Golang to version 1.26.11 or later, or 1.27.4 or later, where this issue is fixed. The fix includes proper handling of escaped quotes and unquoting of //go:cgo_ldflag directives, as well as a bounds check correction. No other mitigation is required as the vulnerability is addressed by these official patches.
Description
A vulnerability in Golang's build process allows unexpected code execution or a panic during build time via crafted quoting in //go:cgo_ldflag directives. This occurs because cmd/compile and cmd/go improperly parse these directives, enabling bypass of linker flag validation. The issue affects versions prior to 1.26.11 and versions from 1.27.0 up to but not including 1.27.4. Fixes are available in versions 1.26.11 and 1.27.4.