# CVE-2026-97034: Arbitrary command execution via GCC spec files in cgo linker search directories in cmd/go

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-11 · Modified: 2026-11-17
- Aliases: DEBIAN-CVE-2026-97034, GO-2026-6857, UBUNTU-CVE-2026-97034, ALPINE-CVE-2026-97034, CGA-23pf-39mr-vqcr, CGA-2gg7-c3hw-jxjm, CGA-2h7m-953m-j77h, CGA-2mg4-x7gv-4xmv, CGA-3jfm-26x3-r47v, CGA-4873-f3m7-q6px, CGA-4jc7-7fr4-4ww9, CGA-5gj6-98m6-wg98, CGA-6v29-pg7q-hp42, CGA-6v77-vqm5-6f56, CGA-7335-3fr2-7rj2, CGA-7mrm-v68p-f46v, CGA-7v8w-9h6f-vv62, CGA-8xxj-92r2-x9j4, CGA-9fx5-m4p3-3fj8, CGA-9h2w-xq9c-6gqp, CGA-9rj8-jmcj-mrjg, CGA-ch27-6gcg-x9g6, CGA-ffv2-9266-v3cg, CGA-fh23-m5j8-4hj8, CGA-gh8r-6r39-jrwx, CGA-hxfj-4rrw-57m9, CGA-j796-m8ff-xpmh, CGA-jjwm-jc2c-j98q, CGA-mhg6-vxvc-hw8f, CGA-mm6p-56cv-5c67, CGA-mp95-5qjm-rg8r, CGA-mpf3-fr5r-j9qm, CGA-pgp4-8wxv-7qjf, CGA-pmpg-q952-c8wv, CGA-pxj7-xm2h-xcrw, CGA-q8x9-364h-j922, CGA-qh79-vw76-jcj3, CGA-qhq8-hr59-mrw2, CGA-r4h3-5g2c-6mqv, CGA-vj3g-p4wc-235w, CGA-w6r5-j4vg-mv7x, CGA-x8r5-2hgc-9gr4, CGA-x9mm-m262-fhcq, CGA-xqjf-f4fr-3rf2, CGA-224c-2vx4-h8x2, CGA-2292-m8w3-3827, CGA-23g7-j475-88wq, CGA-24cj-r4j5-6p6r, CGA-278c-32m7-36g7, CGA-27fj-pfxf-c9m5, CGA-28wm-467x-qcp8, CGA-29q5-4h26-j6cf, CGA-2cj6-j4f2-8qjx, CGA-2cpv-rr9p-239p, CGA-2cw4-g432-qx69, CGA-2f8v-mh6p-5xxf, CGA-2jxp-ff96-chqc, CGA-2m2j-pcj2-5p6q, CGA-2qph-6vg8-m5w8, CGA-2qv8-84fw-vm2p, CGA-2qvh-wh4g-876c, CGA-32xm-qf5v-jxrg, CGA-35pq-5c7w-qpmv, CGA-36fw-f55j-28fv, CGA-36ww-f86h-f6w9, CGA-3878-cvv2-43gr, CGA-3jff-j3v6-m8m5, CGA-3jjp-22jm-86rw, CGA-3mfm-vx38-p3xm, CGA-3mqp-pmwr-3gqr, CGA-3q2j-vp7m-pfmv, CGA-3qvh-9jmv-ww94, CGA-3xrr-xp97-hgh3, CGA-434m-m294-8whr, CGA-43rj-h74w-3448, CGA-449f-j663-92j7, CGA-44gq-mmjw-jv4m, CGA-455c-wqf6-qxrv, CGA-46vm-mr8p-7cf5, CGA-4878-37fc-3v2f, CGA-4995-8wv5-p6j3, CGA-49mg-4vh9-w7gv, CGA-4gjv-cfwf-qr78, CGA-4gm5-2m4c-379w, CGA-4gpj-2gwh-xmw4, CGA-4j4j-76rc-9fjv, CGA-4j5f-3f9x-8rvg, CGA-4j6c-g743-fx4r, CGA-4pgx-jx2m-vhpm, CGA-4pjj-5746-p56v, CGA-4vg9-p249-jv76, CGA-4x24-qv2w-gg62, CGA-4xjc-xmm9-4824, CGA-4xwf-x8wg-25j2, CGA-522r-vm22-7q9q, CGA-5972-2r2p-pj63, CGA-5995-pxpx-2v9f, CGA-5c65-64g4-2xvx, CGA-5c73-5794-7gqj, CGA-5crx-4wcx-p58h, CGA-5g5m-cf98-3455, CGA-5hh7-3qp9-79xg, CGA-5pqg-j3g6-x78v, CGA-5whg-g6fr-pqmf, CGA-5xrm-hc5r-345c, CGA-63cr-jv4f-h6q5, CGA-63j5-v33h-p727, CGA-63p9-89xx-hp98, CGA-63pg-p8vj-4h39, CGA-6474-jqg7-35qq, CGA-67fg-p3jc-67xj, CGA-67r6-hrhp-hf7p, CGA-67v4-gx8j-cv45, CGA-685x-69xg-35f6, CGA-69vw-q68r-32vr, CGA-6cjj-pxxv-98fp, CGA-6hr6-5745-grgq, CGA-6jrx-wr3f-v589, CGA-6jxf-m4h9-8qxc, CGA-6mjp-wmpj-5jwf, CGA-6q92-v3g9-f5fv, CGA-6rfh-76x8-6px5, CGA-6wf8-xhc8-2mjq, CGA-739f-m685-xm67, CGA-76jh-72v9-78cq, CGA-7c7f-v4v6-964c, CGA-7cf4-2jq9-rrgw, CGA-7mc3-h8pw-hr5h, CGA-7pcp-jgq6-g6qg, CGA-7prq-276x-h2gg, CGA-7rvm-xwcp-7xp6, CGA-7v5r-gp9f-c2fr, CGA-7xjf-wvcc-266m, CGA-82c8-cx36-3h6m, CGA-837m-hff8-x2xh, CGA-845w-h4gc-fmv6, CGA-85p9-wv8v-pc6g, CGA-85wj-r8pg-7gq8, CGA-8649-7c8m-5pw8, CGA-86pj-53cf-cwjv, CGA-885h-pr6x-mfjw, CGA-88r9-cgx5-vvcf, CGA-8f7p-2jmm-f6fj, CGA-8mch-f295-6ghj, CGA-8p33-p4xc-wxh4, CGA-8p35-78fg-8qff, CGA-8x7x-6mfj-79ph, CGA-9242-ffx5-j58g, CGA-9cj7-gc62-3xpw, CGA-9fwr-hg9f-ph8j, CGA-9gfg-p329-q4h6, CGA-9gvf-xrw2-6hw9, CGA-9hcm-4322-892x, CGA-9j78-qvpq-qr5f, CGA-9mh5-9r7v-hvwp, CGA-9mxv-xjj8-w9fv, CGA-9pqx-r2jq-8vf3, CGA-9vx5-56mr-hx3m, CGA-9xfj-6vc8-5v7f, CGA-c52r-3rcx-gph8, CGA-c72p-9vjr-pfx8, CGA-cf4w-7vrg-6w36, CGA-cff2-w2qm-4wxf, CGA-ch92-qhrc-8279, CGA-chf4-rmph-5xv7, CGA-cjvg-4hh6-r765, CGA-cpr2-vfc2-9ccr, CGA-cpv4-qh63-h7h6, CGA-cr82-pq55-jh77, CGA-crq3-h9xm-qpj8, CGA-cx4q-292g-9q82, CGA-f333-c5rw-528g, CGA-f9hj-mv3h-69h4, CGA-fjvf-98h8-3fpq, CGA-fm3j-8p3g-jq2c, CGA-fq7v-p433-3gj4, CGA-fqc8-r35c-f8px, CGA-frcr-68w2-h7pj, CGA-frj5-vp9f-92xj, CGA-fvcx-rrf6-7wwv, CGA-fvp4-hhfg-qffj, CGA-fx4q-7jx6-xcrw, CGA-g637-jq4v-6m62, CGA-g834-2vhc-vpp5, CGA-gg9h-5vw9-774p, CGA-gh89-p4pw-q5mp, CGA-ghxp-62p7-wvx3, CGA-gj5r-3gg7-4hgv, CGA-gj6g-xw7x-v5xf, CGA-gjc9-jfjg-67cx, CGA-gm4w-vjmv-28r3, CGA-grh4-4647-527m, CGA-gx86-g4g7-hxpw, CGA-h54p-xp9q-63v8, CGA-h5qp-g3g2-mjwp, CGA-h78h-6mmx-h29j, CGA-h8xq-pffp-jggf, CGA-h978-w636-7gh4, CGA-hh39-f74f-cqr9, CGA-hj95-jvfj-9gvj, CGA-hjgc-c5jg-qv4p, CGA-hjm7-426h-vp42, CGA-hw7h-m3g3-8x43, CGA-hwxx-q59f-g637, CGA-hx86-3c2m-rrmm, CGA-j648-5wc7-h7vg, CGA-j7m6-xhch-hj9g, CGA-j9jr-fvf5-59wv, CGA-jjw4-c77w-3mrh, CGA-jqgx-qcrm-7c4c, CGA-jr9h-vprf-xj68, CGA-jrwg-gjrj-9wvv, CGA-jvff-9g74-v693, CGA-m2cv-m52j-5h62, CGA-m5mc-h2vc-7m66, CGA-m95w-pr65-p72c, CGA-mcv9-gvvr-p5f8, CGA-mfcq-5rg9-chrx, CGA-mh52-hph9-r77c, CGA-mhjw-7847-7hxr, CGA-mj4r-fwm3-884q, CGA-mmff-xhq8-3h7v, CGA-mw5f-vm47-2v47, CGA-mwjx-6wc4-xqp4, CGA-mxx2-j9q8-qj25, CGA-p3p3-j97m-5x76, CGA-p4q8-hr84-wfch, CGA-p4vv-g6mj-c6wx, CGA-p78w-mv3f-5qqr, CGA-p7h4-rfc8-rcfp, CGA-pjh6-56cp-v572, CGA-pjm5-p2hh-hpvv, CGA-ppp5-5h22-w4v4, CGA-prmq-2cqw-55gj, CGA-pvmw-6x5h-m9px, CGA-pxq4-4v46-57c7, CGA-q4gj-62r9-5548, CGA-qc77-r793-fr3h, CGA-qfrg-7j4p-cv2c, CGA-qj48-j8pp-64g3, CGA-qj65-h4jc-8j5r, CGA-qm78-j7f3-58gx, CGA-qpf7-grpf-r85r, CGA-qr43-8hrg-ggwp, CGA-qrfp-vhq9-cxx9, CGA-qvfg-7458-g8q7, CGA-qx7q-hcg6-rm7j, CGA-qxwf-76hq-99gw, CGA-r98w-mmff-6fj9, CGA-rfmw-w8xv-wgwv, CGA-rhvv-55vm-hvqc, CGA-rm5q-3m2h-9j23, CGA-rmj9-vmxx-6j69, CGA-rpv2-9fpp-69f4, CGA-rvhp-78q7-82pj, CGA-rw6h-mjqj-935h, CGA-rxc5-57xr-69rc, CGA-v2wm-3cwx-rg84, CGA-v39m-92fg-5wf6, CGA-v44j-89q2-vgcw, CGA-v452-hqv9-3jg6, CGA-v4wm-qjq8-cg6j, CGA-v6cv-6375-435f, CGA-v8gv-3256-66p4, CGA-v8hx-q5r4-fq49, CGA-v8j5-8vjr-r38h, CGA-v8pr-pqjr-hfhv, CGA-v8w2-v8x3-33g2, CGA-vg77-gq3q-xghf, CGA-vj36-cpmm-9fxp, CGA-vm58-cx8q-pfqr, CGA-vmmf-r94c-2w98, CGA-vmmg-2p4c-cwmf, CGA-vr2v-pm37-7rr8, CGA-vr42-9rhj-992w, CGA-w4qc-qh44-9v4c, CGA-w682-9rrh-6694, CGA-w6j4-2r2g-f9jv, CGA-wc58-2v9h-w43f, CGA-wcfc-52hp-c823, CGA-wcv9-mp4c-hm2m, CGA-wf4r-7c35-p8gq, CGA-wg6h-9mj3-m49r, CGA-wghj-3gf6-r6x8, CGA-wh9m-c66q-h33m, CGA-wjcr-hxx9-jf3m, CGA-wjpf-h96v-j6q8, CGA-wpmp-gjh8-8p8j, CGA-wqf5-h7qc-7gxf, CGA-wr4h-8x26-7mg9, CGA-wr73-h37j-jwv7, CGA-wrgr-84mp-wh3w, CGA-wx37-h5p5-fhxp, CGA-x44g-g84j-g3c4, CGA-x5h5-7j3m-fm4f, CGA-x5rv-27qg-hw5c, CGA-x65w-gv2h-rmcj, CGA-x6p9-j9qf-mpj4, CGA-x8c4-vqxj-gxcr, CGA-xc4j-gh7p-jchw, CGA-xcff-9h77-rv48, CGA-xcv5-5j6v-w745, CGA-xfh2-42h6-9m97, CGA-xgvv-cqgf-497m, CGA-xh43-v3m5-xwrp, CGA-xhqv-m4xj-xxc8, CGA-xjgm-w97q-4xfh, CGA-xp6r-573h-hxj9, CGA-xqcj-26p4-mg3j, CGA-xqmc-fp4r-3xvv, CGA-xw9x-jqf5-g3m2, CGA-xwrq-m8mm-x329, CGA-4pwc-chpm-4hf5, CGA-qmm3-wcc6-j67j, CGA-wwff-rx2q-c789, CGA-4jmg-vpxv-rx48, CGA-9w7g-j9ff-5q8p, CGA-h8rr-2qcq-c8f9, CGA-hpfc-2r75-88gm, BIT-golang-2026-97034, CGA-2cf8-h578-wh39, CGA-3hf6-c6fw-xpjq, CGA-3x47-c3cr-q394, CGA-4452-673x-xq33, CGA-5cv8-7pj4-9wqc, CGA-67hr-vg52-7488, CGA-cwxm-4ph7-ppjh, CGA-hf5r-qp3q-fxhc, CGA-r2gv-h554-f3r5, CGA-vfxx-j2p2-w2pv, CGA-22h5-fw5h-77f5, CGA-gqh7-pp97-vwqg, CGA-m35q-jp74-hv8w, CGA-x3fh-6322-jcmv
- Record: https://cvemate.com/vulnerability/CVE-2026-97034 · JSON: https://cvemate.com/vulnerability/CVE-2026-97034/json

## Description

```text
When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files ("specs" or "*.spec"). When linking with "-fopenmp", "-fopenacc", or "-fsanitize=" in "#cgo LDFLAGS", GCC's built-in link spec evaluates "%:include(libgomp.spec)" or "%:include(libsanitizer.spec)" and searches for spec files in "-L" and sysroot directories (including subdirectories and multilib sibling directories such as "../lib64"), as well as the working directory when "-fopenmp" or "-fopenacc" is used or when "-fsanitize=" is combined with "-static" or "-static-lib*". The go command now rejects "-L", "-isysroot", and "-Wl,-syslibroot" directories (and the working and package directories when applicable) that contain GCC spec files, and disallows "@" and "-" prefixes in "-fsanitize=" compiler flag values.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.828%, percentile 58.783%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 105)

- alpine go (Alpine Linux): \< 1.26.11-r0 \| \< 1.27.4-r0
- chainguard azure-service-operator (Chainguard): All versions (No fix recorded)
- chainguard commercial-chainloop-backend (Chainguard): All versions (No fix recorded)
- chainguard commercial-chainloop-cli (Chainguard): All versions (No fix recorded)
- chainguard commercial-expanso-edge (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.2 (Chainguard): All versions (No fix recorded) \| \< 19.2.11-r0
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.10-r5
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): All versions (No fix recorded) \| \< 19.2.11-r0
- chainguard commercial-gitlab-workhorse-ee-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.11-r0
- chainguard commercial-gitlab-workhorse-ee-19.2 (Chainguard): All versions (No fix recorded) \| \< 19.2.10-r2
- chainguard commercial-gitlab-workhorse-ee-fips-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.11-r0
- chainguard commercial-gitlab-workhorse-ee-fips-19.2 (Chainguard): All versions (No fix recorded) \| \< 19.2.10-r2
- chainguard commercial-grafana-11.6 (Chainguard): All versions (No fix recorded)
- chainguard commercial-grafana-12.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-grafana-12.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-grafana-12.4 (Chainguard): All versions (No fix recorded) \| \< 12.4.16-r0
- chainguard commercial-grafana-13.0 (Chainguard): All versions (No fix recorded)
- chainguard commercial-grafana-13.1 (Chainguard): All versions (No fix recorded) \| \< 13.1.11-r0
- chainguard commercial-grafana-13.2 (Chainguard): All versions (No fix recorded)

## References

- <https://security-tracker.debian.org/tracker/CVE-2026-97034>
- <https://go.dev/cl/862147>
- <https://go.dev/issue/82576>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM>
- <https://pkg.go.dev/vuln/GO-2026-6857>
- <https://ubuntu.com/security/CVE-2026-97034>
- <https://www.cve.org/CVERecord?id=CVE-2026-97034>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ>
- <https://github.com/golang/go/issues/82576>
- <https://github.com/golang/go/commit/c5426cee10abdae95f8f86e22bfff0932c75be79>
- <https://github.com/golang/go/commit/faaa8b62d6d8b08ff164213508cad1be33149ec7>
- <https://security.alpinelinux.org/vuln/CVE-2026-97034>

---

Data as of 2026-12-05T08:08:50.183Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
