# CVE-2026-97033: Unexpected code execution via --sysroot, -target, -isysroot, -Wl,-syslibroot, and -x cgo flags 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-97033, GO-2026-6858, UBUNTU-CVE-2026-97033, ALPINE-CVE-2026-97033, CGA-2cj8-2f49-c4h4, CGA-2r7r-pxgv-hr58, CGA-35gx-c262-64pg, CGA-38m4-7w88-m6mm, CGA-3frr-5w4v-gg5g, CGA-3x4c-p4vf-27h3, CGA-56g5-vw2p-fc23, CGA-64r5-fp9q-3268, CGA-6hhc-g26j-34q3, CGA-6whq-4f8p-jjm2, CGA-76g5-32x2-cm69, CGA-7x2q-5935-rcpm, CGA-8cgm-4wm9-jmq5, CGA-9c2p-vvpq-qv3h, CGA-9wgw-fpqv-hfh3, CGA-c39v-q8w9-mrj5, CGA-c4f9-jcpm-m5mj, CGA-c552-rx42-rrxc, CGA-cw5g-mm84-337x, CGA-f485-p9gq-gv9q, CGA-fpfv-gvjh-vr64, CGA-fx63-r5h6-m82x, CGA-g2xj-689m-hfq8, CGA-g4jj-449r-6rf7, CGA-ggjr-8p27-j339, CGA-gq3r-qrh4-432x, CGA-h8w4-wvmp-rq45, CGA-hg5x-m96c-372f, CGA-hgq3-hq9v-pw4x, CGA-hmhf-whjq-j2w7, CGA-j283-fj9q-375m, CGA-j32h-jp55-5h4w, CGA-jgwx-fmjq-vjfc, CGA-mrvg-2jmg-4xw9, CGA-pv92-c6mw-693j, CGA-q5xp-8q6c-42qx, CGA-r86r-jpph-w47r, CGA-rrch-pvh2-jf2p, CGA-vpx6-jmcg-vvq5, CGA-vw3p-j3fp-fgjq, CGA-22f3-pgf6-85p9, CGA-22vg-p65w-hw2v, CGA-25f7-crjw-5575, CGA-26cq-x782-gv5m, CGA-26hf-hq99-4gwm, CGA-26qr-543w-384p, CGA-2753-2m28-mjm8, CGA-275g-x349-w5wh, CGA-28gm-9hrc-r5fh, CGA-2cwh-v62w-wx32, CGA-2fc7-v4xx-7w4w, CGA-2h48-rx6p-893q, CGA-2phr-258h-596v, CGA-2rf5-wcj3-74p5, CGA-2w3h-mv6g-jfx8, CGA-33h2-7pgm-44vr, CGA-37mq-xqp4-f259, CGA-382h-6xgm-gjq2, CGA-39qc-4r7q-h36c, CGA-39w6-qcvp-vjv6, CGA-3r56-526p-v6x2, CGA-436j-gp32-cvmh, CGA-45vq-x5wx-wp56, CGA-466h-6m49-q6pr, CGA-468x-wj9x-m587, CGA-48hh-5gpx-g22h, CGA-49hm-6cj2-275q, CGA-4j45-xpcm-9m96, CGA-4j55-w5ph-47pp, CGA-4jwc-jvqf-cj92, CGA-4mqc-wrqh-hppc, CGA-4pc3-7wf2-mpm8, CGA-4q7p-g3ph-vpwc, CGA-4r9v-q9cf-8h53, CGA-4v36-7mv3-88rc, CGA-4vqp-fx7j-r6xx, CGA-4vvr-r369-3rj5, CGA-5356-mj8p-rxxj, CGA-53rp-ghpf-3j56, CGA-54gh-q8vj-2p83, CGA-5cgc-v434-jq92, CGA-5gmx-289f-9fqr, CGA-5ppf-65g3-p23q, CGA-5v5w-p5hg-cfwx, CGA-5x86-j6h5-6ff7, CGA-628m-35xx-r6hr, CGA-678m-68ph-h35j, CGA-6jfj-crw5-ghhr, CGA-74m7-pc35-895m, CGA-74qg-jrq2-28cg, CGA-77x9-8chw-w77r, CGA-78v9-qvfw-mqq3, CGA-7cg8-xq6r-g5ph, CGA-7f96-qxcm-56h5, CGA-7ffp-gm9g-mxr6, CGA-7frf-9p2r-rg96, CGA-7gqj-x5j6-w2v3, CGA-7h8p-vvff-7g99, CGA-7hx3-7q6r-4r9m, CGA-7p4f-cr99-8q2g, CGA-7p7q-4rcv-crqf, CGA-7qjf-43xc-3jcm, CGA-7qp6-9cpc-wmf4, CGA-7w5w-wh57-c433, CGA-7x2f-q252-mc85, CGA-7x65-c6fh-f79w, CGA-827v-w75j-7hhg, CGA-82qr-7w6x-fmxf, CGA-846p-gwwm-qfj5, CGA-86v6-p4fj-rvfg, CGA-875q-9266-4h3g, CGA-87mm-r6p6-h4v5, CGA-88jw-v59x-9xhv, CGA-89hx-4v8h-2w3f, CGA-8c39-4w3x-v8vf, CGA-8c7q-vhrh-hrhx, CGA-8cp9-m33w-8v3x, CGA-8fv5-2h3r-gxr8, CGA-8g29-mrmr-727c, CGA-8gcm-6ppf-4r96, CGA-8h33-4f9h-397c, CGA-8hcc-x65q-xm8x, CGA-8pg7-3qqj-fjqq, CGA-8vj4-9j9w-h7hr, CGA-8vvf-m6qv-8f65, CGA-8wp7-82gw-9cv4, CGA-92h9-m89j-rwj6, CGA-92hc-wwcp-79q8, CGA-934j-pwpm-38pm, CGA-93qf-437q-mv5c, CGA-93w9-g7vp-mhvq, CGA-95pf-w66c-6fpj, CGA-97mh-w8p3-5hch, CGA-99qg-g9pr-5662, CGA-9mg7-8pm9-g594, CGA-9pqv-rj8c-r68f, CGA-9r7p-q6j8-33r8, CGA-9rcj-x78c-8369, CGA-9vhg-wccp-6j2c, CGA-9x24-f9fg-h227, CGA-9xvx-mx9f-62cp, CGA-c2v7-72c3-v3wx, CGA-c43m-g937-r4p6, CGA-c5vm-843j-cmf9, CGA-c5xj-8f55-8v8c, CGA-c6wj-xg3c-m265, CGA-c7rh-5fg9-39vm, CGA-c84r-94p6-9fq9, CGA-c8pf-xv92-x3pc, CGA-ccp5-q5qq-mfc7, CGA-cfgm-x8m9-hrmm, CGA-cp7x-83q4-2mwj, CGA-cqvg-qgc2-wjhc, CGA-crv5-xcq4-fvqr, CGA-f476-4g2r-hmvw, CGA-f4hp-5p84-j948, CGA-f5j9-cf65-8jpq, CGA-f6vr-65wm-q4rc, CGA-f76h-mp74-g8c2, CGA-f97v-wm9x-9822, CGA-fch8-4x8h-h5wf, CGA-fg64-j7hv-776j, CGA-fjqm-q423-9qc2, CGA-fp97-gm22-79f4, CGA-fpcm-5m7v-25x8, CGA-fw33-7mhw-5xgv, CGA-g4h9-gv32-85w3, CGA-g4q3-vqmw-c5f4, CGA-g5xf-c66f-v8g8, CGA-g96w-9p9r-2rmv, CGA-g9hh-prpj-mw82, CGA-gcmv-mc84-v424, CGA-gfq9-g8v9-vcvp, CGA-ghvm-mjx2-42fv, CGA-gm89-5vwr-gqwr, CGA-gvh8-hc9g-x249, CGA-gwvw-329x-8hxr, CGA-gx2h-9v64-5jwv, CGA-gxr5-g58r-94pv, CGA-h255-cjgp-xg93, CGA-h2m7-54jh-f5jj, CGA-h3rp-vw73-9qq6, CGA-h535-qqm9-wcxh, CGA-h58h-qg2w-g42h, CGA-h5fh-g6j8-xvp4, CGA-h6qq-x6c2-cp7x, CGA-h7g4-3fqg-wcxf, CGA-h7rq-4fc4-5p7f, CGA-hcpx-2cw4-4wjv, CGA-hf5m-fpph-h855, CGA-hg4j-4jc3-qm4r, CGA-hgjj-jg97-frgc, CGA-hhhm-x9q7-jpjq, CGA-hrfx-vf47-5vw2, CGA-hvc9-67v3-6v3h, CGA-hw22-qhfc-vp35, CGA-j2cr-4r79-6xqr, CGA-j3c9-rwpj-chx9, CGA-j4fc-2qr8-9j24, CGA-j8v8-5c52-cxhf, CGA-j9pm-7xjj-5xpg, CGA-jj5f-r562-f8x5, CGA-jj6m-jp33-q94q, CGA-jq7m-vcwx-2wx3, CGA-jqqp-jp2g-66ww, CGA-jr82-wvj7-cv47, CGA-jw3v-fwv7-49w4, CGA-jwv3-jr42-h85m, CGA-jx63-hgvx-949v, CGA-jxv8-vx37-pmp7, CGA-m365-ph7g-chr7, CGA-m3fc-9q64-64v6, CGA-m5g4-5qrx-4x69, CGA-m5xv-8f5h-39c3, CGA-m6px-jx7j-7m99, CGA-m765-m8vh-5cg6, CGA-m7xg-hm5x-c4gr, CGA-m8qq-mqv4-4g8f, CGA-m8xv-3x9r-qv75, CGA-mf3g-gp4c-3pc7, CGA-mg2g-78w2-2357, CGA-mh89-7qhr-m55w, CGA-mj8q-x3c2-c5h3, CGA-mqfg-xf8v-7rxh, CGA-mr59-fcrg-rqq9, CGA-mw97-qfhc-qmhv, CGA-mx47-6hp8-2m4r, CGA-mx6v-hv8h-q4cr, CGA-p742-758f-4983, CGA-p787-mh5g-w4mg, CGA-p7pg-q4xj-6j7v, CGA-p869-m2x6-jq5w, CGA-p9qh-pvqv-6vvg, CGA-pfhh-2p63-h672, CGA-ppvr-hc9c-r66p, CGA-pq28-jr8f-5pvg, CGA-prcr-rxrv-h733, CGA-pvhf-q5v2-j997, CGA-pxff-x93c-9x89, CGA-pxqq-9g49-jg6p, CGA-q46v-w7c3-pv97, CGA-q4xc-g2pp-g8r8, CGA-q627-vqm6-855m, CGA-q6gm-mmfx-hmjj, CGA-q8mw-54jp-2vcw, CGA-q9rw-h3cf-mpwq, CGA-qcp6-m6gf-jxj7, CGA-qfmq-xh7r-hxpr, CGA-qg65-rwmp-6h82, CGA-qpq7-q556-fh29, CGA-qqq7-6424-q9c4, CGA-qr7j-vmr6-25fm, CGA-qrp2-q8fq-xh5v, CGA-qrv4-35jc-26wm, CGA-qrxq-pfvj-7p9h, CGA-r3fv-68hq-jf7m, CGA-r3pj-7cx8-f6w7, CGA-r476-44p3-cj95, CGA-r4mp-j7qc-g8m6, CGA-r5x6-7mpp-qh28, CGA-r758-hh79-2fxh, CGA-r78h-jx7v-26rj, CGA-r8hq-cr6q-465m, CGA-rf4v-4fgp-hx7f, CGA-rggf-wr2r-r9fp, CGA-rhc2-95j5-qg59, CGA-rp9p-mcmv-4pxm, CGA-rw6w-g8ph-696w, CGA-rw7m-h6pw-2hff, CGA-rw89-q8fx-mvq6, CGA-v7p6-4xcr-qmxw, CGA-v8wq-rhjr-9rf8, CGA-vg6j-989x-68rx, CGA-vh7f-hcmx-vhg3, CGA-vm22-2gpx-m7p6, CGA-vwcc-6xcv-ph5h, CGA-w2qc-gc55-r479, CGA-w32c-rw9x-c96p, CGA-w4m3-5w2j-7r4m, CGA-w73p-2cvf-mxj6, CGA-w78c-q49g-hqm7, CGA-wcc2-gh92-7p9f, CGA-wcq4-r2h5-2hpc, CGA-wcr4-6rgr-6hfj, CGA-wm8h-gc2h-jpg4, CGA-wq85-vjmc-prpr, CGA-wr5v-m2g4-mh6v, CGA-wrfx-pc7p-jc8r, CGA-wv4q-hwwf-4mqw, CGA-wvq3-hcw9-2p9v, CGA-ww7x-m696-xvfm, CGA-x2rj-7g76-hrxf, CGA-x3v4-jv66-qfpm, CGA-x497-9j97-p8j3, CGA-x4cf-84gh-rgvf, CGA-x5q2-2m6f-jc2p, CGA-x5vf-g2wq-3mp6, CGA-x6j6-hpqj-3234, CGA-x6vq-rr56-wg34, CGA-x9p4-3wmw-x6cp, CGA-xc2q-hwr7-76hf, CGA-xhjj-g25j-4f4w, CGA-xp53-9mgq-6c8x, CGA-xrx6-9qj8-hv4q, CGA-xv5m-g868-5frm, CGA-xv9r-rj8g-cc67, CGA-xvfg-9hp3-9432, CGA-xwj4-xw93-qh77, CGA-fwq2-qp2g-78cp, CGA-hvx5-273r-45q2, CGA-pq3g-h249-9r3w, CGA-2fpx-2778-p36m, CGA-32jh-w9j3-rch7, CGA-m5cp-58mf-x5rc, CGA-w9pv-82qw-r3h5, BIT-golang-2026-97033, CGA-46m4-qchw-jrjq, CGA-5658-3824-f433, CGA-69j5-66vw-9m89, CGA-7fqv-m6gq-v7r9, CGA-fqfp-j86p-hw97, CGA-h7hw-7fgf-3vjm, CGA-hrxg-r368-hp66, CGA-hxcv-pm39-mghq, CGA-rxpw-h38m-vrwm, CGA-wx28-w5wg-xr29, CGA-57rm-9388-h8gm, CGA-mwr7-m6c4-pw8x, CGA-p7xc-2f47-v7hv, CGA-w367-xfvr-j9r6
- Record: https://cvemate.com/vulnerability/CVE-2026-97033 · JSON: https://cvemate.com/vulnerability/CVE-2026-97033/json

## Description

```text
Building a malicious package that uses cgo could cause arbitrary code execution at build time through several compiler and linker flags permitted in "#cgo" directives. Specifically, "--sysroot" in GCC and Clang relocates compiler subprograms, spec files, and CRT startup objects to an attacker-controlled directory; "-target" in Clang falls back to executing target helper tools from the current working directory when not found in PATH; "-isysroot" and "-Wl,-syslibroot" can pass a regular file on disk to GNU ld.bfd, which interprets it as a positional linker script; and "-x" permitted specifying arbitrary compiler input languages beyond those supported by cgo. "--sysroot" and "-target" are now disallowed in "#cgo" flags, "-isysroot" and "-Wl,-syslibroot" are verified not to point to regular files, and "-x" is restricted to the C, C++, Objective-C, and assembler languages supported by cgo.
```

## 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)
- 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-97033>
- <https://go.dev/cl/862146>
- <https://go.dev/issue/82577>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM>
- <https://pkg.go.dev/vuln/GO-2026-6858>
- <https://ubuntu.com/security/CVE-2026-97033>
- <https://www.cve.org/CVERecord?id=CVE-2026-97033>
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ>
- <https://github.com/golang/go/issues/82577>
- <https://github.com/golang/go/commit/8e7ba03754ee2a386ac17439725bcc44bcdb12a7>
- <https://github.com/golang/go/commit/c4a70ad79652b00f2b52e6902507d83de4a480d6>
- <https://security.alpinelinux.org/vuln/CVE-2026-97033>

---

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