# CVE-2026-97037: Linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo 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-97037, GO-2026-6854, UBUNTU-CVE-2026-97037, ALPINE-CVE-2026-97037, CGA-252w-p7x8-q688, CGA-3h23-g7r5-hvhq, CGA-444w-63mj-4f3r, CGA-44x2-vrg8-253m, CGA-4857-pw9v-mh3c, CGA-4q3m-6rrc-7fw3, CGA-5484-qwc6-jhm9, CGA-5hfj-gh7q-9g7w, CGA-5q47-x938-gm24, CGA-64cj-p7f7-3mh6, CGA-6g35-2fpp-rcjp, CGA-6qhw-xph3-j3g7, CGA-7fjv-2mfh-3q4v, CGA-7rgp-82q5-jwr4, CGA-8fvh-2fxr-2q6p, CGA-988g-35q3-grc4, CGA-98pp-7cfh-5qpm, CGA-9948-2852-gvx7, CGA-9978-vcmr-6wpj, CGA-9cr5-7c52-x9q7, CGA-c37j-3qpj-v4pv, CGA-f57x-rxpq-m9vw, CGA-f79p-8w4r-2fp7, CGA-gq24-6rqx-f4x8, CGA-hc3v-w79f-27xf, CGA-hmqf-q4wr-g4rq, CGA-hmw5-3j2r-x57f, CGA-hq3m-h5w5-5p85, CGA-hvcj-mhj3-qxhv, CGA-hw22-mjr6-54p4, CGA-j9rg-98fx-rrfm, CGA-jr37-7mpx-fvxg, CGA-jvm4-9r58-wvf3, CGA-mrqm-phv4-ph4c, CGA-p273-2246-f3cf, CGA-r7f9-v536-vg82, CGA-rmhw-x7m2-4846, CGA-v964-45qx-whhr, CGA-x8cx-vf7g-8vqq, CGA-xrr2-hf4q-588c, CGA-2485-p3x4-c9gj, CGA-24jc-rrq4-m4j5, CGA-26m5-cgcv-x5m5, CGA-2c27-wvh7-vr5c, CGA-2m4x-cxj5-q74c, CGA-2mx5-5h4m-77qx, CGA-2pc3-4gpq-w5f8, CGA-2ppq-c7m3-f685, CGA-2w9m-72m6-fm57, CGA-32j7-qf8x-4c42, CGA-347p-7929-jmvp, CGA-349x-w879-crxf, CGA-37pj-m63r-h264, CGA-3h5f-wq6r-4r6m, CGA-3jg8-32rm-38mp, CGA-3mr7-r9xx-5973, CGA-3q7q-rfq4-m7jm, CGA-3r3q-r7cx-55fg, CGA-3w3r-7q82-598p, CGA-3wvh-q9rp-rgmc, CGA-3xhp-46gq-gf3h, CGA-4389-qppj-2555, CGA-43mr-94cp-rxpc, CGA-43wr-q6wx-hp8f, CGA-4456-jq5v-qw5c, CGA-44vw-45c8-rv89, CGA-474v-mr4v-6rpf, CGA-4776-5gr5-4h22, CGA-47fj-9j94-j94m, CGA-47hv-gpgg-c4rv, CGA-47pg-xqcj-5xwp, CGA-49jm-33xc-7fq3, CGA-4cjg-47g7-3jmm, CGA-4gxh-9f97-g64g, CGA-4hf5-jc2c-xxg7, CGA-4j5v-59mp-f5mg, CGA-4j6g-5659-rpx2, CGA-4jv5-x6xq-xg2r, CGA-4m9f-49rh-vqxx, CGA-4pcv-429f-7xc5, CGA-4w58-2qxw-p2f6, CGA-4wrf-3jjq-p7v2, CGA-4ww9-v962-qwcm, CGA-5472-884c-cjj7, CGA-563g-gc3r-5pvv, CGA-5747-q2gg-37vv, CGA-58vg-qqxr-g9gc, CGA-5cwm-c9mx-39g9, CGA-5f6m-qjwx-7chh, CGA-5fff-rwwv-jcx4, CGA-5g9x-qv7c-wcr4, CGA-5q9f-jh34-pf5p, CGA-5rr6-9f37-rx3c, CGA-63c5-m65j-cx65, CGA-6459-qr5j-7c5q, CGA-65jj-867h-rqqh, CGA-66wg-vf38-pxf9, CGA-67xj-v2wx-vc53, CGA-68qh-mm83-mrw3, CGA-6ghr-9q39-gcr2, CGA-6h5h-m8mj-pxp8, CGA-6hrc-pq5f-v86p, CGA-6rxr-qpj3-jv22, CGA-6vw6-wwq7-9f9p, CGA-7284-rmf6-vrcw, CGA-73m2-hvv4-g6c4, CGA-748q-84j5-963g, CGA-7547-fxwg-fhm3, CGA-75pj-r42f-838p, CGA-79p8-7g33-vqg2, CGA-7c7w-6j3r-qcq7, CGA-7f57-pv98-9v43, CGA-7g97-gg57-3r2g, CGA-7h95-8crx-f9f6, CGA-7jr8-wxxj-4wmq, CGA-7mm9-hw5w-p3p4, CGA-7r49-qm85-rv6h, CGA-7vh3-9rhx-m2cg, CGA-7w7r-v732-fpq4, CGA-7x2m-2p5m-2pvh, CGA-7xcp-rp5c-qg3p, CGA-83ph-559c-3qr8, CGA-8425-hh36-pxgq, CGA-8583-6wr2-2qvm, CGA-85fx-rv8v-78h9, CGA-864c-4vqw-2f9q, CGA-873p-5vw6-r5x4, CGA-895p-rgw4-c7mg, CGA-8cc2-ghmh-c8c6, CGA-8fq7-4244-j28v, CGA-8jgg-3v73-6947, CGA-8p42-4vpr-7w55, CGA-8qwc-vmh2-v93x, CGA-8v3f-cv33-x7w9, CGA-8v9f-pc6g-6r5x, CGA-8vj6-4836-rh8c, CGA-8x7h-74p8-86hc, CGA-8x9h-rh8v-rp39, CGA-8xp5-8xjr-57hg, CGA-93rg-r25x-26c8, CGA-977p-45f5-8wgx, CGA-97vm-hp5q-84m5, CGA-9fv4-h432-79fq, CGA-9jc2-jw7h-9c7h, CGA-9m3c-pf3m-f58p, CGA-9mxf-q87p-48j8, CGA-9ph9-hf27-3fvf, CGA-9vf6-gmmh-qf36, CGA-9x89-94vh-37c6, CGA-9xh6-crjr-9hxg, CGA-9xrm-5w29-xjr8, CGA-c482-jgq5-gm4m, CGA-c68f-52r9-xm45, CGA-c6q4-fpvv-g9vj, CGA-c774-3vf5-qf7g, CGA-c9ff-29vp-v4w3, CGA-cc7c-6f59-7mvm, CGA-chg8-gc2j-q7px, CGA-cmr6-2w6p-pfr9, CGA-cp9h-3xpf-vgx9, CGA-cqq5-69c2-2gxp, CGA-cr3w-8vch-vm9g, CGA-cw8c-6xf8-f6pv, CGA-cxp8-rjmj-8445, CGA-f22c-6pr3-r7qg, CGA-f64q-hq37-j478, CGA-f79c-wr9w-g4v6, CGA-f7pp-pwp5-35cv, CGA-f8gm-4p6f-xjxc, CGA-f9wc-5j5q-whff, CGA-fc34-2r27-w665, CGA-fm3g-m96p-w77v, CGA-fm4j-2v7g-36fh, CGA-fmf5-r8w4-p9vq, CGA-fmqv-xc9w-527g, CGA-fpx9-rg35-2v8x, CGA-fr98-7g89-ff2g, CGA-frwh-hxjp-vj7m, CGA-fvj3-hf59-g5xx, CGA-fx87-g4cq-77qj, CGA-fxpp-3rvr-w42c, CGA-g36m-wc6j-98f8, CGA-g42c-8386-hf9p, CGA-g4r3-8x63-f5gf, CGA-g7mh-g9hq-5mmf, CGA-g7rx-8f28-wc2x, CGA-gfrj-pf5v-wgv5, CGA-gmvm-rqqq-pwxw, CGA-gp29-rp6g-3ghw, CGA-gp42-vr2x-wfj7, CGA-gvf9-cr9r-x46m, CGA-gvg4-mf7r-f7vf, CGA-h4c9-x5hv-cr9f, CGA-h4x3-mqgq-8xwg, CGA-h547-mm9j-6fpm, CGA-h6hw-227p-cwvh, CGA-h6p6-h77f-f3hr, CGA-h8vr-f9gr-g4xg, CGA-h9j8-8jrw-vvq2, CGA-h9q6-whvr-h74r, CGA-hc29-vw5x-79fj, CGA-hcxh-wv2r-rjmf, CGA-hfh4-83jg-pccm, CGA-hg37-2xqp-rjm6, CGA-hpr6-ccvp-wmjv, CGA-hqw3-gm6j-wfvj, CGA-hrhg-7cqq-qv6q, CGA-j24f-m3v8-mrp7, CGA-j266-6wg8-w4r5, CGA-j2m6-8m66-vpmf, CGA-j334-frrp-qj7m, CGA-j4h5-58cc-jp52, CGA-j73v-869v-vph4, CGA-j833-m8mc-987j, CGA-j98g-8fgg-g7m4, CGA-j9v7-3mxc-88qj, CGA-jj36-gwqp-r5r8, CGA-jjj7-q6g3-69vr, CGA-jrfh-rqhc-xhq2, CGA-jrvc-wh23-rfpc, CGA-jv45-92h8-6gvh, CGA-jvqv-5h5f-x68m, CGA-jw82-rpw4-cgv3, CGA-m296-gmpc-35vc, CGA-m33p-3wvp-pmpg, CGA-m3cp-9jvm-pgqp, CGA-m6hh-ccrm-hj37, CGA-mh36-9ghm-h822, CGA-mjjg-997q-v65v, CGA-mjq9-rcwc-x24c, CGA-mjrg-rmvm-p2rr, CGA-mp6p-4p6j-mrrp, CGA-mp75-h25x-cph3, CGA-mqvr-x9q6-v2m4, CGA-mrp6-mpjw-86qr, CGA-mv86-4233-66r2, CGA-p29w-xvqm-fw6g, CGA-p2f3-p764-fqhx, CGA-p5xq-g8hh-64ch, CGA-p995-p2w8-2qj7, CGA-pcx5-cpfr-p9mh, CGA-pfm2-v3wv-vwhf, CGA-pggw-w6wv-m876, CGA-pgjq-cv77-m43h, CGA-pjv5-gj7m-vfpv, CGA-pq28-qm53-p96f, CGA-pq72-chgc-rpfj, CGA-pqg5-wmgq-rrvq, CGA-pr2r-x3xj-5j64, CGA-q2qv-vj6m-f2wh, CGA-q3gf-3rq8-3cgh, CGA-q3h3-pq6q-3575, CGA-q7qw-hw2j-x225, CGA-q8g5-qw7p-gcr3, CGA-qf7v-x54p-q3x2, CGA-qgg8-8qm6-rm7c, CGA-qjcm-mqh3-47h6, CGA-qrh3-j43m-ppfc, CGA-qrjq-6xmr-jxgf, CGA-qrq5-wpqh-588x, CGA-qvr7-4m8x-h947, CGA-qxh3-jp59-7hvh, CGA-r2rp-9mmc-wp32, CGA-r3p8-rhqm-v6ww, CGA-r3pf-3h6j-qfrq, CGA-r4jc-37qr-j9q6, CGA-r77m-vgxw-9vmh, CGA-r8m8-pj5w-p898, CGA-r9gw-7cvc-mpxv, CGA-rcfm-h2c7-wcgv, CGA-rcmw-9whr-j65v, CGA-rvg7-pqm3-vff4, CGA-rxxw-jrc9-r46r, CGA-v2p9-fcwh-gv39, CGA-v6fm-6wf6-q86m, CGA-v9hx-wxj7-mmwh, CGA-vcjg-gg2h-7cfq, CGA-vf33-34r7-jrq6, CGA-vf7m-7w8r-qqm4, CGA-vgxr-266h-mq4r, CGA-vjjr-vvcp-x7mx, CGA-vpjf-frcx-cxgc, CGA-vwxm-m8mp-4wpf, CGA-vx2m-hjfm-pcwr, CGA-w27m-88q6-g873, CGA-w49m-pmv9-4fvq, CGA-w528-pgjq-xwgm, CGA-w576-vf5h-jj6j, CGA-w7vp-45v8-qfgm, CGA-w864-crx4-v4qm, CGA-w8xh-w92x-rxww, CGA-wcmg-3f9p-pjvj, CGA-wf3h-qf2p-94vc, CGA-wg2c-4xxx-9rxh, CGA-wphh-48hx-v69c, CGA-wqhc-3rc9-fq7q, CGA-wqpc-97mv-887h, CGA-wv45-cqcc-vxvq, CGA-wxwp-pj2p-488v, CGA-x3vx-6772-9r8q, CGA-x3xj-jhrg-jrcg, CGA-x53w-53p5-g845, CGA-x7hx-hh83-q8vq, CGA-x8fw-j6j8-cmc9, CGA-xf6w-9cpf-p8cr, CGA-xj6m-r28c-9j9c, CGA-xmh6-j428-7x5h, CGA-xw7r-w4rw-vc8g, CGA-39pp-72r5-7hf6, CGA-5mxm-pqh8-wp6j, CGA-fp7q-rw69-cc4j, CGA-jvfw-m7fj-63hh, CGA-pmg8-4gwx-gcpc, CGA-4c3w-wq3c-jchj, CGA-57hj-46w9-wj9r, CGA-6929-58fh-fhh6, CGA-cfwr-gq4m-387h, BIT-golang-2026-97037, CGA-39cx-6mvr-mhfg, CGA-42hv-v5fx-gh47, CGA-49mp-788v-f6hm, CGA-6j73-v744-h8q7, CGA-f4wx-883h-53hr, CGA-p5f8-wm5p-7xg2, CGA-pprc-2v39-m93v, CGA-q9f5-x9j6-77v3, CGA-qv5h-qgvx-5w3q, CGA-x5hg-pvq8-4wf3, CGA-7rwx-9j2v-h58f, CGA-8prr-wxv7-m6cf, CGA-g3rr-pg7p-q6x3, CGA-h52p-mhpq-4hqq
- Record: https://cvemate.com/vulnerability/CVE-2026-97037 · JSON: https://cvemate.com/vulnerability/CVE-2026-97037/json

## Description

```text
Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via "#cgo LDFLAGS". Split "-Wl," flags that consume a following argument (such as "-Wl,-rpath", "-Wl,--just-symbols", and "-Wl,-undefined") previously accepted a bare second argument without a "-Wl," prefix, which the compiler driver passes directly to the linker as a positional input file. Additionally, when using GNU ld.bfd, flags such as "-framework", "-Wl,-framework", "-Wl,-undefined", "-Wl,--just-symbols", "-Wl,-R", "-Wl,-subsystem", and (on non-Darwin platforms) "-Wl,-sectcreate" could cause ld.bfd to interpret their arguments as linker scripts if they named a regular file on disk. The go command now requires a "-Wl," prefix on the second token of split "-Wl," flags (except "-Wl,-R"), verifies that these flags do not reference linker script files, and disallows bare "-Wl,--warn-backrefs-exclude".
```

## 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.686%, percentile 54.047%, 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) \| \< 19.1.11-r0
- 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) \| \< 13.0.14-r0
- chainguard commercial-grafana-13.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-grafana-13.2 (Chainguard): All versions (No fix recorded) \| \< 13.2.7-r0

## References

- <https://security-tracker.debian.org/tracker/CVE-2026-97037>
- <https://go.dev/cl/862150>
- <https://go.dev/issue/82573>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM>
- <https://pkg.go.dev/vuln/GO-2026-6854>
- <https://ubuntu.com/security/CVE-2026-97037>
- <https://www.cve.org/CVERecord?id=CVE-2026-97037>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ>
- <https://github.com/golang/go/issues/82573>
- <https://github.com/golang/go/commit/5f05d301a704caf2bda2801edef56196c90c82e2>
- <https://github.com/golang/go/commit/8d42fafae94059ce25ad5d410628535d54ee1680>
- <https://security.alpinelinux.org/vuln/CVE-2026-97037>

---

Data as of 2026-12-05T08:08:49.892Z. 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
