PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-97041 Go toolchain CVE debrief

A vulnerability in the Go toolchain's cmd/compile and cmd/link components allows for host linker flag injection via //go:cgo_* directives. This issue could enable an attacker to inject arbitrary flags into the external linker invocation on ELF platforms by building a malicious package. The vulnerability is addressed in Go versions 1.26.11 and 1.27.4, where the compiler and linker now reject commas in //go:cgo_* symbol and dynamic linker directives.

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

Who should care

Defenders responsible for Go development environments, especially those using untrusted or third-party packages, should assess their exposure to this vulnerability. They should verify if their Go toolchain versions are prior to 1.26.11 or 1.27.4 and update accordingly. Additionally, defenders should monitor for suspicious activity related to Go package builds and linker invocations.

Why it matters

This vulnerability in the Go toolchain's cmd/compile and cmd/link components allows for host linker flag injection, potentially enabling attackers to inject arbitrary flags into the external linker invocation. Defenders should assess exposure, especially in environments using untrusted or third-party packages, and update to patched versions.

  • Potential for arbitrary flag injection in linker invocations.
  • Possible exploitation through malicious package builds.
  • Need for version updates to 1.26.11 or 1.27.4 for patched versions.
  • Importance of monitoring Go package builds and linker activities.

Technical summary

The Go toolchain's cmd/compile and cmd/link components are vulnerable to host linker flag injection via //go:cgo_* directives. This allows an attacker to inject arbitrary flags into the external linker invocation on ELF platforms by building a malicious package. The issue arises from the compiler and linker's handling of commas in //go:cgo_* directives and the passing of dynamic linker paths. The vulnerability is addressed in Go versions 1.26.11 and 1.27.4.

Defensive priority

Defenders should prioritize assessing exposure in Go development environments, especially where untrusted or third-party packages are used. They should verify if their Go toolchain versions are prior to 1.26.11 or 1.27.4 and update accordingly. Additionally, defenders should monitor for suspicious activity related to Go package builds and linker invocations.

Recommended defensive actions

  • Assess exposure in Go development environments, especially where untrusted or third-party packages are used.
  • Verify Go toolchain versions and update to 1.26.11 or 1.27.4 if necessary.
  • Monitor for suspicious activity related to Go package builds and linker invocations.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.
  • 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.

Evidence notes

The CVE record and source item provide details on the vulnerability, including its description, affected versions, and references to patches and advisories. However, there is limited information on exploitation or specific attacks.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-97041 CVE Program record

    Publisher, destination, and source semantics verified

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

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

  • CVE-2026-97041 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

    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.