PatchSiren cyber security CVE debrief
CVE-2026-97034 Go toolchain CVE debrief
The Go toolchain's cmd/go component is vulnerable to arbitrary command execution via GCC spec files in cgo linker search directories. When building a malicious package that uses cgo with GCC, an attacker could exploit this issue at link time, potentially leading to compromise of Go-based applications and infrastructure. The vulnerability is addressed in Go versions 1.26.11 and 1.27.4. Defenders should assess exposure, apply patches, and monitor for suspicious activity related to cgo and GCC spec files. This includes teams managing Go-based applications and infrastructure.
- 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
Defenders responsible for Go toolchain deployments, particularly those using cgo with GCC, should assess exposure and apply patches. This includes teams managing Go-based applications and infrastructure.
Why it matters
CVE-2026-97034 is a vulnerability in the Go toolchain's cmd/go component that could allow arbitrary command execution via GCC spec files when using cgo. Defenders should prioritize assessing exposure, applying patches, and monitoring for suspicious activity.
- Potential for arbitrary command execution during the linking process
- Exposure of sensitive data or systems through exploitation
- Compromise of Go-based applications and infrastructure
- Verification of patch application and vulnerability remediation
Technical summary
The vulnerability occurs when using GCC with cgo in the Go toolchain's cmd/go component. A malicious package could cause arbitrary command execution at link time via untrusted GCC spec files. The issue is addressed by rejecting certain directories containing GCC spec files and disallowing specific prefixes in compiler flag values. This vulnerability could allow an attacker to execute arbitrary commands during the linking process, potentially leading to compromise of Go-based applications and infrastructure. Defenders should prioritize assessing exposure and applying patches for this vulnerability, particularly in environments using the Go toolchain's cmd/go component.
Defensive priority
Defenders should prioritize assessing exposure and applying patches for this vulnerability, particularly in environments using the Go toolchain's cmd/go component.
Recommended defensive actions
- Assess exposure of Go toolchain's cmd/go component in your environment
- Verify if your version of cmd/go is vulnerable (versions before 1.26.11 or 1.27.4)
- Apply patches or updates to vulnerable versions of cmd/go
- Monitor for suspicious activity related to cgo and GCC spec files
- 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 CVE record and source item provide details on the vulnerability, including its description, affected versions, and references to supplemental sources. The vulnerability occurs when using GCC with cgo in the Go toolchain's cmd/go component. A malicious package could cause arbitrary command execution at link time via untrusted GCC spec files. The issue is addressed by rejecting certain directories containing GCC spec files and disallowing specific prefixes in compiler flag values. Evidence is limited to public CVE details and source
Sources and references
Verified primary and authoritative sources
-
CVE-2026-97034 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-97034
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-97034 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97034
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Arbitrary command execution via GCC spec files in cgo linker search directories in cmd/go
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/97xxx/CVE-2026-97034.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://go.dev/cl/862147
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://go.dev/issue/82576
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://pkg.go.dev/vuln/GO-2026-6857
Supplemental source
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.