# CVE-2026-97036: Arbitrary code execution during build on darwin via "-l to\_library" 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-97036, GO-2026-6855, UBUNTU-CVE-2026-97036, CGA-23rv-hvgf-8qpg, CGA-25hv-34mr-3m8h, CGA-2mqf-fr4m-6hg8, CGA-2xp9-r8xx-9c5x, CGA-466w-7r3q-vxm6, CGA-4g2v-c4p4-hr39, CGA-5ffp-7r82-8j2m, CGA-5jx9-qmcj-5gxm, CGA-6r53-jr47-gj6m, CGA-7qrh-86c7-7j7h, CGA-859r-h23j-qcvw, CGA-8744-4gjr-346w, CGA-886g-mhm3-vx37, CGA-8qp8-vqgx-fw58, CGA-99rx-9568-hjr5, CGA-c4r7-m9pq-hfrq, CGA-fv6g-pcvc-24hx, CGA-h2x7-jrj7-98qg, CGA-h46x-w5xq-54ph, CGA-h4wj-c98w-jpw3, CGA-m6pw-4fjr-2hqq, CGA-mwc5-76m3-hcqp, CGA-p6p9-6wr6-74m6, CGA-q5fx-rvcv-w4vh, CGA-qhc9-c5pv-rpjw, CGA-r38x-848m-q6xp, CGA-r5v8-c3v8-65v7, CGA-r686-6cp2-mpp3, CGA-rfvm-g3w6-xpp2, CGA-rh3v-m7g4-xp7q, CGA-v23p-857h-5rq5, CGA-v2r7-x464-m564, CGA-v468-379f-6x54, CGA-vwm3-r27r-m74r, CGA-w2c3-m8r6-pxf3, CGA-wh2w-4w79-2g24, CGA-x2pp-99rv-xc43, CGA-xfv3-qf86-3p46, CGA-xhfv-qj6g-842p, CGA-xrw8-p9wg-qvpw, CGA-236j-m947-px6w, CGA-23v5-26v9-pccv, CGA-25vx-h5h8-258h, CGA-26r3-wq3x-xc7q, CGA-2932-39p6-4rj4, CGA-29cr-vwp8-pxjf, CGA-29p8-f2m2-37g9, CGA-2g36-jg29-653q, CGA-2hpc-m6v3-hqrc, CGA-2q2g-pvhq-m8c8, CGA-2v5c-49j6-xprw, CGA-2wj5-mx9f-p3pg, CGA-32fv-mwr7-jjh8, CGA-339v-9w49-vchw, CGA-353g-fr7j-4297, CGA-3fwg-3p7f-q7j3, CGA-3g62-vfc5-556m, CGA-3gr4-4259-87v5, CGA-3mmp-c74q-f97q, CGA-3p6f-f4rq-2pm5, CGA-3q6q-5mxf-ffq4, CGA-3qjx-4p4x-2qj7, CGA-3r8r-cxxh-m43c, CGA-3rhj-fgrv-vw8q, CGA-3rwf-767h-6p94, CGA-3wff-vxxv-j5c8, CGA-3wq9-w3v3-779q, CGA-3x85-4h9h-r3qq, CGA-3xh8-4v4w-6xp5, CGA-424q-q2fc-jrgx, CGA-44pc-3rx7-9wp2, CGA-4596-hpxr-7p3g, CGA-4664-p88m-p6jj, CGA-46g5-4j3h-jxxp, CGA-46xh-whj9-qxr5, CGA-47h7-jvxx-gwff, CGA-47mm-6jcj-6vh6, CGA-483f-w96j-gp9w, CGA-499m-8vrc-wrc3, CGA-4g98-j5wr-5w78, CGA-4ppx-xjpg-prjm, CGA-4rmp-gmw2-qw52, CGA-4v3r-fv4c-p36m, CGA-4vqp-q88f-25q9, CGA-4x7c-v894-5pc5, CGA-522v-2j3v-xfpj, CGA-535r-fwph-v9x7, CGA-54rp-m74w-3pxq, CGA-564x-rqfq-4g7q, CGA-5965-52c4-q48g, CGA-633r-jrr3-7jrp, CGA-65fr-qvh9-jqwr, CGA-67jg-736c-vxj5, CGA-68wx-gj7c-jpx6, CGA-6gcx-6q59-hqj5, CGA-6m6h-jqhg-cj32, CGA-6mjv-3v65-mr24, CGA-6p3j-vrjg-8cx4, CGA-6pgp-g23f-h83c, CGA-6qmm-57j2-m6g6, CGA-6r74-5mjc-4552, CGA-72j6-f6pc-7rj6, CGA-744v-3fq6-ccjp, CGA-75f8-79jj-38wc, CGA-776h-2f7m-qpq3, CGA-7f4g-qvjc-9q6w, CGA-7g75-c8rv-cj4x, CGA-7jmc-jc9w-3qxg, CGA-7jxv-27wx-wmx7, CGA-7m9f-mccc-299w, CGA-7mv4-8282-9mw9, CGA-7pg9-56fp-v4pf, CGA-83vc-2jr7-544p, CGA-848x-qjpg-8gfp, CGA-84pc-pwg9-89rf, CGA-855r-72p5-wxq6, CGA-85g3-445v-f359, CGA-88pg-7r82-xjx4, CGA-8cr8-9fqr-x799, CGA-8fjq-wxx5-c79w, CGA-8fxv-p796-gv9x, CGA-8g92-p684-799c, CGA-8grq-2cqw-rfqh, CGA-8j7g-3656-gx7x, CGA-8j89-xv7w-cxh5, CGA-8jr5-8cxx-hvp9, CGA-8mhf-58vp-q825, CGA-8q6h-vfcq-fj2c, CGA-8vp5-mmfg-hf3r, CGA-8wrr-47cm-2443, CGA-8xh7-8wf8-9cc5, CGA-92m3-3fmh-8jmm, CGA-92q4-7c9v-vvvf, CGA-94m4-3v88-wmp6, CGA-96qv-gmwj-9pgw, CGA-98v8-pw34-jf8w, CGA-9c8r-xhf9-pv8j, CGA-9cxc-896w-w6gm, CGA-9gmf-xp44-fj7r, CGA-9hc7-rg28-jx9r, CGA-9j33-3vj3-xcwg, CGA-9m3w-gx8v-xm2q, CGA-9m75-9mqf-ff95, CGA-9pj7-8jhw-v7vr, CGA-9pxv-jp94-3j42, CGA-9q2w-h46g-vcw9, CGA-9qq4-w8r3-hm9w, CGA-9wjm-pxjc-2mvv, CGA-9xj8-m6v5-cq9m, CGA-c55g-8m6r-xfqx, CGA-c8cc-8pxx-7pr5, CGA-c8qc-xh22-j9r3, CGA-c9wc-j23m-qhw5, CGA-ccwr-q2p3-hp7m, CGA-cf4m-94wg-jpxm, CGA-chqf-wj8j-7w7c, CGA-chrq-jq77-c7xp, CGA-crfv-f352-m4w4, CGA-cvgc-vv42-gc6v, CGA-cvr8-gmvp-m5jw, CGA-cw8v-wx55-gjcq, CGA-cwq5-4r64-f9hj, CGA-cxc8-prxc-7xm3, CGA-f278-8hfx-62x7, CGA-f333-j96g-w2w2, CGA-f6vh-5hxc-fxmx, CGA-ffjc-pc88-vf53, CGA-fqj5-mv7w-p75c, CGA-frj8-vr24-gw2q, CGA-fvjw-6cxp-v75h, CGA-fwm9-5969-mqwr, CGA-fxm6-qcxm-93v6, CGA-fxxc-jv94-83xj, CGA-g354-xw6f-pcj5, CGA-g3mr-3xp2-m2ch, CGA-g5hq-6r29-fpqp, CGA-g7gx-gchh-f3qh, CGA-g7jh-35xw-v568, CGA-g8gf-4r47-5rh3, CGA-g9h9-88q9-3245, CGA-g9qf-cfwf-mjmf, CGA-g9wv-9323-mq62, CGA-gcgv-58wf-f2f7, CGA-gcv3-4m44-4h3h, CGA-gf72-frv2-ffjc, CGA-gh57-w523-q287, CGA-gh8c-qxvj-px2c, CGA-ghfr-x85v-h4vm, CGA-ghwr-h53g-j35q, CGA-ghx9-m7hp-72m5, CGA-gmjr-8vxh-cg9v, CGA-gmmm-qff9-fph4, CGA-gq2h-5wc8-vqw4, CGA-gq3f-g66h-gxwf, CGA-gr3c-m8xm-2pm9, CGA-gvfc-h34w-ghvj, CGA-gvhc-p4x5-jc3j, CGA-gwqg-rjf8-vq5q, CGA-gxjx-mp6j-vwr8, CGA-h4h8-36c8-94fc, CGA-h562-53jv-q4mf, CGA-h6gg-97m8-h8xq, CGA-h6gq-6wmq-fmf4, CGA-h97c-fjjm-q5r5, CGA-hc39-xj95-p2gq, CGA-hpww-xxvf-5xff, CGA-hvqw-9h48-2f98, CGA-j2g7-9w26-rfc8, CGA-j5h2-wffm-6p7m, CGA-j96r-jjpv-884c, CGA-jf27-2h78-vx4j, CGA-jfjj-fh72-jwp9, CGA-jhf8-5jvh-jrgq, CGA-jhjx-h2cx-h482, CGA-jm2w-7w54-rrwq, CGA-jmqq-3vp2-f936, CGA-jq5g-66qx-v5g3, CGA-jq97-vgw4-w669, CGA-jwhm-4wvm-5m86, CGA-jwvj-367q-vqxh, CGA-m28g-hqqr-r66r, CGA-m5jw-5c6g-q976, CGA-m8rh-f2c9-7cfg, CGA-m8rm-mpcf-266f, CGA-m98m-p59c-pq37, CGA-mh5w-r9fc-89m9, CGA-mj32-885p-54f2, CGA-mpj6-9jf7-32vr, CGA-mpqr-6p8w-hfpj, CGA-mq3v-g4fx-jpw2, CGA-mrq6-f2w2-pghg, CGA-mv3c-9wrc-rprr, CGA-mxvx-qm2m-rv6c, CGA-p424-mphc-7rrf, CGA-p5h2-35g4-xpc5, CGA-p9xw-xh5v-r6wh, CGA-pj4q-mwgj-9m2p, CGA-pj4q-qgcj-94r3, CGA-pp6m-3mwm-qhf4, CGA-pr69-pmw2-mx3g, CGA-prph-7hhw-hvj4, CGA-pwj6-97m3-4867, CGA-q2h9-jwq9-rpf6, CGA-q4x5-fjfv-c57v, CGA-q89p-6j44-r6hj, CGA-qfw5-ffr7-qqwc, CGA-qprr-hmjg-mjq9, CGA-qqw3-g827-66vr, CGA-qrh5-9x72-p66m, CGA-qrp7-w65j-9m69, CGA-qrrv-4mgg-2pqr, CGA-qvmp-cjpf-528j, CGA-qvq2-rrxw-27fx, CGA-qww4-6jfp-8c5f, CGA-qx65-5385-mqpr, CGA-r34f-v47c-2rqc, CGA-r3c8-w9xr-rhx7, CGA-r5f2-m2m9-767p, CGA-r6v2-rwqr-x6rf, CGA-r6vg-wvv7-c66j, CGA-r6xc-4rw5-prjq, CGA-r8c9-88hg-879m, CGA-r8vq-9jmm-3fp9, CGA-rc2q-vfg4-7f2p, CGA-rg5j-j5xj-jw83, CGA-rgj8-wxrr-rgmh, CGA-rmm3-558f-8vmc, CGA-rmm6-xhvh-9j62, CGA-rpv5-j3h3-ghqq, CGA-v2g6-w6j7-5rgf, CGA-v5m9-9gph-m93h, CGA-v67r-p3fv-6f66, CGA-v86f-34cr-h3xf, CGA-v88m-cmhj-j28m, CGA-v9ff-5q29-rf96, CGA-vcx9-pmx5-xcqx, CGA-vf7p-4qjg-7jph, CGA-vgq3-x835-mf58, CGA-vgx5-6v64-372r, CGA-vqq4-5fjv-mpfh, CGA-vqvm-cgr9-88xh, CGA-vr6p-7fr4-2j49, CGA-vvpr-2w75-wh6j, CGA-w247-pmq6-557g, CGA-w447-rrqf-f2xr, CGA-w69p-39m6-mmv4, CGA-w7hq-ph46-fcc7, CGA-w8w7-vr75-mjvm, CGA-w955-9r67-83vc, CGA-w959-2v7j-wm2h, CGA-wf3v-9fw9-ccjf, CGA-wfww-fhvw-hrhq, CGA-wr25-2c8m-w9rv, CGA-x3rv-99f2-vjm7, CGA-x3v5-rg2j-w9cx, CGA-x57r-gwgc-fc5r, CGA-x733-qwx8-7j32, CGA-x7q2-3wf8-w243, CGA-xc46-82rv-x355, CGA-xc86-538c-6q9w, CGA-xcvr-338p-wv5q, CGA-xf7c-36v2-f5jr, CGA-xg9x-wqv3-2xh4, CGA-xgfc-x4mw-86j2, CGA-xgxc-w6f8-q58x, CGA-xp22-m236-8p97, CGA-xp4g-7hgx-rpw4, CGA-xp9c-6mxh-j6p2, CGA-3pvp-2v59-fwc2, CGA-8pc7-9j9h-67pv, CGA-gj6j-9phg-mj58, CGA-mp5w-p3x3-x9x9, CGA-3mgq-mp98-w33f, CGA-3mh3-cjx3-j95f, CGA-6fm6-pg2j-587v, CGA-8x4v-4qv7-x3h9, RHSA-2026:94990, RHSA-2026:94994, BIT-golang-2026-97036, CGA-r979-6f3c-j7gv, CGA-gcf5-w9wq-6cq8, CGA-3cfx-jrp3-ww9w, CGA-4qqw-35w8-fgw3, CGA-78wc-pqx6-gj9c, CGA-f5xx-jj54-42fq, CGA-gfr3-px33-crrr, CGA-mmvv-gq2j-8c83, CGA-qj98-mp9p-33qp, CGA-vx73-wm3m-hr3v, CGA-x27w-frhr-rrw7, CGA-xm3v-fp38-855q, CGA-55mr-q4g9-3fvc, CGA-hgv5-q3j2-f2fg, CGA-p8h6-675x-fghm, CGA-rrhq-56c8-3fg8
- Record: https://cvemate.com/vulnerability/CVE-2026-97036 · JSON: https://cvemate.com/vulnerability/CVE-2026-97036/json

## Description

```text
On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library <path>" in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.
```

## 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.706%, percentile 54.76%, 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 116)

- 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) \| \< 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
- chainguard commercial-kyverno-1.14 (Chainguard): All versions (No fix recorded)

## References

- <https://security-tracker.debian.org/tracker/CVE-2026-97036>
- <https://go.dev/cl/862149>
- <https://go.dev/issue/82574>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM>
- <https://pkg.go.dev/vuln/GO-2026-6855>
- <https://ubuntu.com/security/CVE-2026-97036>
- <https://www.cve.org/CVERecord?id=CVE-2026-97036>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ>
- <https://github.com/golang/go/issues/82574>
- <https://github.com/golang/go/commit/0edfcc8731871d158162c4b73efded994fdcc3bc>
- <https://github.com/golang/go/commit/0e2c832156565cf52d1f5ffb578039f747884d64>
- <https://access.redhat.com/errata/RHSA-2026:94990>
- <https://images.redhat.com/>
- <https://access.redhat.com/security/cve/CVE-2026-97036>
- <https://access.redhat.com/security/updates/classification/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_94990.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2571450>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-97036>
- <https://access.redhat.com/errata/RHSA-2026:94994>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_94994.json>

---

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