Vulnerability
CVE-2026-97035
When using Clang or GCC, building a malicious package that uses cgo could cause unexpected code execution at build time or write files to arbitrary directories via "-gen-*" or "-gnat*" flags in "#cgo" directives. The "-g*" wildcard in the compiler and linker flag allowlists previously matched Clang's two-argument "-gen-cdb-fragment-path <dir>" flag and GCC's two-argument "-gnatO <file>" flag, permitting compilation database fragments and sidecar output files to be written to arbitrary directories and desynchronizing flag argument parsing between the go command and the compiler driver so that subsequent arguments could be passed as unvalidated positional inputs to the linker. "-gen-*" and "-gnat*" flags are now disallowed in "#cgo" compiler and linker flags.
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-97035
When using Clang or GCC, building a malicious package that uses cgo could cause unexpected code execution at build time or write files to arbitrary directories via "-gen-*" or "-gnat*" flags in "#cgo" directives. The…
- ALPINE-EDGE-CVE-2026-97035
-
AZL-113396
CVE-2026-97035 affecting package gcc 13.2.0-7
-
AZL-113435
CVE-2026-97035 affecting package golang 1.26.11-1
-
AZL-113468
CVE-2026-97035 affecting package golang 1.27.4-1
-
AZL-113588
CVE-2026-97035 affecting package python-tensorboard 2.16.2-6
-
AZL-113675
CVE-2026-97035 affecting package tensorflow 2.16.1-11
- CGA-22m5-c2vx-rf4j
- CGA-238m-4rw8-67cm
- CGA-255q-6q22-fhq5
- CGA-279p-7mhq-f79v
- CGA-27m4-5p3w-r76q
- CGA-296x-crrc-c23m
- CGA-29fv-h4rp-x2fr
- CGA-2fw2-983m-xcw9
- CGA-2m62-26px-wgrg
- CGA-2mch-9cvf-36rp
- CGA-2qvq-34hc-9qjj
- CGA-2v28-f4wj-v5qw
- CGA-32c4-3xp2-5vfm
- CGA-33x9-8cgc-p8m4
- CGA-33xw-hx7h-wp3v
- CGA-3463-gpmq-qm6q
- CGA-352r-g94m-9cpx
- CGA-35hc-p78g-r5v3
- CGA-372j-jvxm-6864
- CGA-374x-43w4-c289
- CGA-37vw-wv2j-vr3h
- CGA-37x9-cq25-qq7g
- CGA-39hx-jrf2-xxw5
- CGA-3c3f-p5xv-wc45
- CGA-3c3w-q3xh-qfv4
- CGA-3c54-gpjm-j356
- CGA-3c7w-g4v6-5r4m
- CGA-3fx6-vf4w-rmw9
- CGA-3gfx-24h5-j35p
- CGA-3h6j-82f6-56g9
- CGA-3h77-565r-cvh2
- CGA-3h9q-hpj4-j84h
- CGA-3j9p-m34f-78fh
- CGA-3jff-rw95-7x2r
- CGA-3m9h-pg95-2vw2
- CGA-3mc9-2g9j-8xhp
- CGA-3v9f-8887-qpxw
- CGA-3xx8-h626-wwr9
- CGA-43jg-j37q-h8xf
- CGA-43x5-wmcq-8mfc
- CGA-4648-77fp-6qvf
- CGA-4cp9-jg2p-9r6p
- CGA-4g33-wf79-xpvj
- CGA-4h2w-p423-w6gq
- CGA-4p83-77qr-x4p6
- CGA-4qqc-c3m6-h568
- CGA-4x75-92j7-whhx
- CGA-4xh2-fhc9-2fxr
- CGA-55mf-42hw-6qh2
- CGA-56x4-v6m4-fchf
- CGA-5c5p-4vp9-xh2m
- CGA-5cc7-p8xf-2qph
- CGA-5jg7-qf6j-cf62
- CGA-5qg8-2963-6m3g
- CGA-5qvj-hv7j-g3j7
- CGA-5rr2-rxvw-xjpv
- CGA-5vfq-hjr6-rvjx
- CGA-6254-4hc6-m88v
- CGA-6255-54hc-3ggr
- CGA-656v-hqh9-cw8p
- CGA-68c3-p5q3-557j
- CGA-68w5-9h58-9c63
- CGA-69x4-p62m-9gqv
- CGA-6c6h-6788-7984
- CGA-6hhf-r7x8-3r56
- CGA-6hhh-v2fm-h54r
- CGA-6jrc-x3cg-mjg6
- CGA-6pxm-vf5g-vf73
- CGA-6v7v-q8jj-j2rc
- CGA-6vgm-j938-qf5c
- CGA-6xg6-j2fw-6wch
- CGA-6xp8-x97j-xp3w
- CGA-7263-2f9j-9rv5
- CGA-74j4-xjjj-hhhm
- CGA-75h4-gfp5-5v77
- CGA-75x4-3wqq-cw88
- CGA-76g2-mj46-q8vh
- CGA-78vp-h377-mrjp
- CGA-7c99-9xhw-rmv3
- CGA-7gjr-q8fq-268v
- CGA-7j32-hgfc-h4jp
- CGA-7jr9-c9px-26rh
- CGA-7m52-38gv-w54x
- CGA-7pv9-qv7j-h3p3
- CGA-7wp6-28mq-32vf
- CGA-7xj5-gwvc-cxcv
- CGA-822m-jwmc-mmhm
- CGA-832c-w5h3-55qv
- CGA-8423-57x7-fjv9
- CGA-8655-cf96-qwg5
- CGA-869c-5chx-mg9c
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-97035.