PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-97035 Go toolchain CVE debrief

CVE-2026-97035 debrief based on the supplied source corpus. The CVE record was published on 2026-11-11T02:51:11.000Z and has not been modified since then. The vulnerability allows for unexpected code execution at build time or arbitrary file writes via malicious package builds using cgo with Clang or GCC. Defenders responsible for Go toolchain deployments, particularly those using cgo with Clang or GCC, should assess exposure and prioritize patching for versions 1.26.0 to 1.26.10 and 1.27.0 to 1.27.3. Build and deployment teams should verify the integrity of package builds and monitor for unusual activity. The vulnerability is caused by improper handling of compiler and linker flag

Vendor
Go toolchain
Product
toolchain
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

Defenders responsible for Go toolchain deployments, particularly those using cgo with Clang or GCC, should assess exposure and prioritize patching for versions 1.26.0 to 1.26.10 and 1.27.0 to 1.27.3. Build and deployment teams should verify the integrity of package builds and monitor for unusual activity.

Why it matters

CVE-2026-97035 allows for unexpected code execution and arbitrary file writes during package builds using cgo with Clang or GCC, requiring defenders to verify and apply patches, restrict '#cgo' directives, and monitor build processes.

  • Potential for code execution at build time, allowing for malicious package builds.
  • Arbitrary file writes via '#cgo' directives, potentially leading to system compromise.
  • Desynchronization of flag argument parsing, allowing for unvalidated positional inputs to the linker.
  • Need for verification and patching of vulnerable Go toolchain versions.

Technical summary

The Go toolchain's cgo functionality is vulnerable to unexpected code execution at build time or arbitrary file writes due to improper handling of Clang's '-gen-*' and GCC's '-gnat*' flags in '#cgo' directives. This is caused by the desynchronization of flag argument parsing between the go command and the compiler driver. The vulnerability allows for desynchronization of flag argument parsing, allowing for unvalidated positional inputs to the linker. Defenders should prioritize verifying and applying patches for the Go toolchain, particularly for versions 1.26.0 to 1.26.10 and 1.27.0 to 1.27.3, as the vulnerability allows for unexpected code execution at build time or arbitrary file writes via malicious package

Defensive priority

Defenders should prioritize verifying and applying patches for the Go toolchain, particularly for versions 1.26.0 to 1.26.10 and 1.27.0 to 1.27.3, as the vulnerability allows for unexpected code execution at build time or arbitrary file writes via malicious package builds using cgo with Clang or GCC.

Recommended defensive actions

  • Verify and apply patches for the Go toolchain, particularly for versions 1.26.0 to 1.26.10 and 1.27.0 to 1.27.3.
  • Restrict the use of '#cgo' directives in package builds to trusted sources.
  • Monitor build processes for unusual activity or errors related to cgo and compiler flags.
  • Consider implementing additional security measures for package builds, such as isolated build environments.
  • 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.

Evidence notes

The vulnerability is caused by the improper handling of compiler and linker flags in the Go toolchain's cgo functionality, specifically with Clang's '-gen-*' and GCC's '-gnat*' flags. This allows for desynchronization of flag argument parsing between the go command and the compiler driver, potentially leading to code execution or file writes.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-97035 CVE Program record

    Publisher, destination, and source semantics verified

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

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

  • CVE-2026-97035 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

    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.