PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-97037 Go toolchain CVE debrief

A vulnerability in the Go toolchain's cmd/go component allows for linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo. This issue can lead to arbitrary code execution at link time when building a malicious package that uses cgo. The vulnerability arises from the way the Go toolchain handles linker flags, particularly when using cgo. Attackers could exploit this by crafting malicious packages that inject arbitrary code during the linking process. Developers and administrators must assess their exposure, especially if they build packages with cgo, and update to fixed versions to mitigate this risk. The vulnerability is addressed in versions 1.26.11,

Vendor
Go toolchain
Product
cmd/go
CVSS
HIGH 8.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-11
Original CVE updated
2026-11-17
Advisory published
2026-11-11
Advisory updated
2026-11-17

Who should care

Developers and administrators using the Go toolchain, particularly those building packages with cgo, should assess their exposure and update to a fixed version. This vulnerability could lead to arbitrary code execution during the linking process, posing a significant risk to systems building malicious packages with cgo. Security teams and operators should verify their usage of cgo and ensure that updates are applied to prevent potential exploitation. The

Why it matters

This vulnerability in the Go toolchain's cmd/go component allows for linker script injection, potentially leading to arbitrary code execution at link time. Developers and administrators should assess their exposure, particularly if building packages with cgo, and update to a fixed version.

  • Arbitrary code execution at link time when building malicious packages with cgo.
  • Potential for exploitation through specially crafted linker flags.
  • Need for verification of affected versions and updates to fixed versions.

Technical summary

The Go toolchain's cmd/go component is vulnerable to linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo. This allows for arbitrary code execution at link time when building a malicious package that uses cgo. The vulnerability is due to inadequate handling of linker flags, particularly when using cgo. The issue is addressed in Go toolchain versions 1.26.11 and 1.27.4. Developers and administrators should assess their exposure and update to a fixed version to prevent exploitation. The vulnerability can be mitigated

Defensive priority

High

Recommended defensive actions

  • Review and update Go toolchain versions to 1.26.11 or later, or 1.27.4 or later.
  • Verify that all packages using cgo are built with the updated cmd/go version.
  • Monitor for suspicious activity related to linker script injection.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.

Evidence notes

The CVE record and source item provide details on the vulnerability, including its description, affected versions, and references to additional information. The Go toolchain's handling of linker flags, particularly with cgo, introduces a risk of linker script injection. This could allow attackers to execute arbitrary code at link time. The vulnerability is addressed in versions 1.26.11 and 1.27.4 of the Go toolchain. Developers should verify their usage of cgo and update to a fixed version to mitigate this risk. Additional information

Sources and references

Verified primary and authoritative sources

  • CVE-2026-97037 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-97037

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-97037 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97037

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.