Vulnerability
CVE-2026-97043
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.
342 advisories report this vulnerability, across 11 ecosystems.
Advisories
-
ALAS2-2026-4125
Amazon Linux 2 2017.12 - ALAS2-2026-4125: important priority package update for golang
-
ALAS2023-2026-3475
Amazon Linux 2023 - ALAS2023-2026-3475: Important priority package update for golang
-
ALPINE-CVE-2026-97043
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.…
- ALPINE-EDGE-CVE-2026-97043
-
AZL-113392
CVE-2026-97043 affecting package gcc 13.2.0-7
-
AZL-113420
CVE-2026-97043 affecting package golang 1.26.11-1
-
AZL-113465
CVE-2026-97043 affecting package golang 1.27.4-1
-
AZL-113594
CVE-2026-97043 affecting package python-tensorboard 2.16.2-6
-
AZL-113642
CVE-2026-97043 affecting package tensorflow 2.16.1-11
- CGA-239v-55j7-5vmx
- CGA-248w-r7rx-hfgf
- CGA-24wj-w5wr-c7mx
- CGA-25cj-gx88-v6xr
- CGA-2654-3p6h-hpgq
- CGA-27jf-cp6p-2m2r
- CGA-27v2-3vm9-mcm6
- CGA-27xf-3pr9-mm54
- CGA-2cp9-m9j2-4f9v
- CGA-2g4h-q3h9-f2qm
- CGA-2gjv-4vf2-jm5q
- CGA-2gp5-g39j-4mp7
- CGA-2ph7-fvq8-p9mx
- CGA-2pvh-fm5v-h493
- CGA-2qgr-426v-r683
- CGA-2qhv-74gh-5mcm
- CGA-2qhw-pj59-r983
- CGA-2qm8-r6wg-h49x
- CGA-2rvq-mxp4-px8c
- CGA-2w95-2gh7-9f7g
- CGA-2x32-jh3v-fcw9
- CGA-2x82-q899-r4c9
- CGA-2xmj-vqpj-7wp3
- CGA-3228-r3fv-hfx3
- CGA-326m-6r3j-hfvr
- CGA-3333-9mm4-qcm8
- CGA-3398-fr2g-9wxq
- CGA-34v3-5222-5cgv
- CGA-35v7-x9rm-39w6
- CGA-36r7-g3wh-372v
- CGA-38qp-v9p4-gj9v
- CGA-38qw-39q8-5grq
- CGA-392q-6mm5-mpjw
- CGA-39qv-5v73-9g2m
- CGA-3c4q-mr3r-x3vp
- CGA-3gfc-72gm-vq8w
- CGA-3h7j-vvvf-j9g7
- CGA-3jv8-4r4q-hh9m
- CGA-3mc4-873c-r7f9
- CGA-3q4w-m725-w5q5
- CGA-3w68-f9f8-23xr
- CGA-425w-qvxh-qq2c
- CGA-42g9-8v37-64w3
- CGA-44jq-wqxx-fjch
- CGA-47rx-mv2x-68cw
- CGA-4934-r8qj-2fp8
- CGA-4cg4-qcc8-g2r5
- CGA-4fq9-h4gx-jg9p
- CGA-4j9f-726g-5cqw
- CGA-4pgj-67m8-vjj9
- CGA-4q7q-h9ww-cc3p
- CGA-4q9x-chph-hfcq
- CGA-4r2q-xqpp-92hf
- CGA-4r53-r4cr-7qmf
- CGA-4r77-wcr4-55vw
- CGA-4vh3-2h3f-mcgw
- CGA-4vvq-gqf6-mjf7
- CGA-52gx-c43j-9f7c
- CGA-53mx-428c-xwqm
- CGA-5cwm-rxhg-j233
- CGA-5jvg-j4cr-j7rm
- CGA-5wm8-fcrm-m3qv
- CGA-5xmc-w42p-c4rc
- CGA-62mv-582r-75fc
- CGA-649j-rjvg-c3x8
- CGA-6552-36f5-9r82
- CGA-65jf-gchr-4p9h
- CGA-668q-9828-xrm8
- CGA-668x-2h6g-v794
- CGA-68rq-36m7-vrj7
- CGA-6fcp-4r35-6q7m
- CGA-6g6m-7xpp-v2p4
- CGA-6gc2-h3h3-h9m8
- CGA-6h25-fjx4-pg83
- CGA-6mcf-h6f8-8cjj
- CGA-6r5x-6m26-cw93
- CGA-6v5j-54qx-w62x
- CGA-6vrg-89x7-m7w5
- CGA-6x2r-5835-3mc4
- CGA-6xg6-49pw-97ww
- CGA-6xhp-9pv4-4cmf
- CGA-73qq-mcm3-5657
- CGA-7637-993c-2gwh
- CGA-77jx-c747-rg6m
- CGA-79g8-4wff-2wjc
- CGA-79g8-qcr3-37vr
- CGA-79jw-jphq-cpfh
- CGA-7g3g-4pvf-5v6h
- CGA-7gp7-wr32-m67f
- CGA-7h5v-g2pq-qmhg
- CGA-7jv2-5wmm-mvw4
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-97043.