Golang 1.10: Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected
Affects golang-1.10Source GCVE Database
Not known to be exploited · CVSS 8.8 High.
Data as of 18 Nov 2026, 15:19 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 8.8 |
|---|
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 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10golang-1.27pkg:deb/ubuntu/golang-1.27?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.23pkg:deb/ubuntu/golang-1.23?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in "//go:cgo_ldflag" directives. When "cmd/cgo" generates "_cgo_gotypes.go", it quotes each "#cgo LDFLAGS" argument with strconv.Quote in a "//go:cgo_ldflag" directive, but "cmd/compile" and "cmd/go" parsed those directives by splitting on raw quote characters without handling backslash escapes or unquoting the string. This mismatch allowed disallowed linker flags or unvalidated linker search paths to be smuggled past the go command's flag checks and passed to the external linker. In addition, deduplicating LDFLAGS in the go command could panic with an out-of-bounds slice index when a prefix of the flag list matched near the end of the slice. "cmd/compile" and "cmd/go" now properly handle backslash-escaped quotes and unquote "//go:cgo_*" pragma strings with strconv.Unquote, and the slice bounds check in processCgoOutputs has been fixed.
References
- ubuntu.com/security/CVE-2026-97043 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-97043 (opens in a new tab)
- groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ (opens in a new tab)
- github.com/golang/go/issues/82567 (opens in a new tab)
- github.com/golang/go/commit/3eb71096ddd9c6fdac2a361be897708ec0d4c3fc (opens in a new tab)
- github.com/golang/go/commit/e9bc401e7197f5c0b806b1cd8db52e34c2d26b97 (opens in a new tab)
- go.dev/cl/862156 (opens in a new tab)
- go.dev/issue/82567 (opens in a new tab)
- groups.google.com/g/golang-announce/c/iY8TY0wWgbM (opens in a new tab)
- pkg.go.dev/vuln/GO-2026-6848 (opens in a new tab)