GHSA-775q-r7gv-cr2x
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious cgo Go module
-
DeliveryVictim fetches and builds package
-
ExploitGCC link spec includes untrusted *.spec file
-
ExecutionArbitrary commands execute at link time
-
ImpactCode execution as building user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the victim to build an attacker-controlled cgo Go package using the GCC toolchain (the flaw is GCC-specific; clang is not implicated in the sources). The malicious package must specify '-fopenmp', '-fopenacc', or '-fsanitize=' in '#cgo LDFLAGS', and a crafted GCC spec file (matching includes such as 'libgomp.spec' or 'libsanitizer.spec') must reside in a GCC-searched directory: a '-L' path, sysroot (including subdirectories and multilib siblings like '../lib64'), or the working directory (for '-fopenmp'/'-fopenacc', or '-fsanitize=' combined with '-static'/'-static-lib*'). Exploitation is limited by: (1) the victim must actively build/link the untrusted package (UI:R); (2) the GCC toolchain must be in use; (3) cgo must be enabled. The fix rejects '-L', '-isysroot', and '-Wl,-syslibroot' directories (and working/package directories where applicable) that contain GCC spec files, and disallows '@'/'-' prefixes in '-fsanitize=' values. |
| Impact | Signals are consistent and point to a serious but conditional developer-toolchain flaw rather than a mass-exploitation emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 8.8) reflects that no privileges are needed and impact is full code execution, but the UI:R term is doing heavy lifting: a victim must actively build an attacker-supplied cgo package with the GCC toolchain. EPSS is low at 0.28% (21st percentile), and the issue is NOT in CISA KEV, so there is no evidence of active exploitation - the low EPSS is coherent with a flaw that requires a tailored malicious Go module and a GCC build, i.e. targeted supply-chain abuse rather than broad internet-facing attack. The vuln.today decision label is 'this_week', which aligns with a patch-available, high-severity-but-interaction-gated issue rather than 'act_now'/'emergency'. No SSVC exploitation/automatable/technical-impact decision points are supplied in the input, so that framework cannot be independently applied here. No PoC or exploit reference is present in the provided data (all references are vendor/advisory/NVD/EUVD/VulDB entries), so exploit availability is unknown, not confirmed. Net: a real priority to patch for anyone building untrusted Go code with GCC (CI systems, module consumers), but not a drop-everything remote mass-exploitation threat. |
| Exploit ScenarioDerived | An attacker publishes or contributes a malicious Go module that uses cgo and sets '-fopenmp', '-fopenacc', or '-fsanitize=' in '#cgo LDFLAGS', and plants a GCC spec file (e.g. 'libgomp.spec'/'libsanitizer.spec' matching '%:include(...)') in a directory GCC searches (a '-L', sysroot, multilib sibling like '../lib64', or the working/package directory). When a victim builds or links that package with the GCC toolchain, GCC evaluates the untrusted spec file and runs arbitrary commands at link time with the user's privileges. No public exploit is identified in the provided data, but exploitation is straightforward for an attacker who controls the package contents and succeeds in getting it built. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 16, 2026
Link-time arbitrary command execution in the Go toolchain affects cmd/go versions before 1.26.11 and the 1.27.x line before 1.27.4: when a developer builds an attacker-controlled cgo package with the GCC toolchain, crafted GCC spec files picked up from '-L' paths, sysroot/multilib directories, or the working directory can run arbitrary commands during linking. Exploitation is conditional rather than automatic - the build must use GCC (clang is not implicated in the sources), cgo must be enabled, the malicious package must pass '-fopenmp', '-fopenacc', or '-fsanitize=' in its '#cgo LDFLAGS', and the victim must actually build the untrusted package (UI:R), which is why the 8.8 CVSS score reflects high confidentiality, integrity and availability impact once the conditions line up. No public exploit code and no CISA KEV entry were identified at time of analysis, and EPSS is low at 0.28% (21st percentile), though the vendor-prioritized decision label places remediation in the current week given the toolchain's position in CI and supply-chain workflows.
Earlier versions of this analysis (1)
Risk cannot be meaningfully quantified from the available data. CVE-2026-97034 is one of twelve identifiers (CVE-2026-97033 through CVE-2026-97043 plus CVE-2026-97054) disclosed only as a pre-announcement of the Go 1.27.4 and Go 1.26.11 releases to the oss-security mailing list; the posting names no affected package, no impact, and no attack scenario. No public exploit code or Proof-of-Concept reference has been identified at time of analysis, the CVE is not listed in CISA KEV, no CVSS score or vector and no CWE classification are available, and the priority label is awaiting_data.
RemediationAI
Vendor-released patch: Go 1.26.11 for the 1.26.x line and Go 1.27.4 for the 1.27.x line; upgrading cmd/go to either release applies the new rejection of '-L', '-isysroot', and '-Wl,-syslibroot' directories (and the working and package directories where applicable) that contain GCC spec files, and the new prohibition on '@' and '-' prefixes in '-fsanitize=' values. Upgrade instructions and confirmation of the fixed versions are in the golang-announce advisory at https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM and the Go vulnerability database entry at https://pkg.go.dev/vuln/GO-2026-6857. Until the toolchain is upgraded, the practical compensating control is to avoid building untrusted cgo packages with the GCC toolchain, or at minimum to review '#cgo LDFLAGS' for '-fopenmp', '-fopenacc', and '-fsanitize=' usage and ensure no GCC spec files are present in '-L' paths, sysroot directories (including multilib siblings such as '../lib64'), or the package/working directory before linking; the trade-off is that this requires manual vetting of every third-party package and loses the automatic enforcement the patched go command provides. Where the build can be moved off GCC, using clang avoids the implicated spec-file lookup path described in the sources.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a command-injection class issue (CWE-77) rooted in the cgo build pipeline and its interaction with GCC's spec-file mechanism. GCC resolves link-time behaviour partly through spec files - notably the built-in link spec's '%:include(libgomp.spec)' and '%:include(libsanitizer.spec)' directives - and searches for those files in '-L' directories, sysroot directories (including subdirectories and multilib sibling locations such as '../lib64'), and the working directory when '-fopenmp' or '-fopenacc' is used, or when '-fsanitize=' is combined with '-static' or '-static-lib*'. Because a Go package can embed arbitrary flags in '#cgo LDFLAGS', a malicious package can steer that search to a directory it controls and have attacker-supplied spec content evaluated at link time. The trigger is specifically the link step of a cgo build using GCC; the sources do not describe any other trigger path. The upstream fix in the go command rejects '-L', '-isysroot', and '-Wl,-syslibroot' directories - plus the working and package directories where applicable - that contain GCC spec files, and disallows '@' and '-' prefixes in '-fsanitize=' values, closing the two routes by which an untrusted package could redirect spec lookup or smuggle flag content.
Know when Golang gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attacker fully controls the malicious package and flags, so AC:L/PR:N; the victim must build it (UI:R); link-time command execution yields full C/I/A:H.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Executive ViewAI
CVE-2026-97034 is a high-severity vulnerability in the Go toolchain that allows arbitrary command execution during the build process when developers use cgo with the GCC toolchain. Successful exploitation could compromise developer workstations, enabling attackers to steal credentials, tamper with source code, or disrupt builds, and the risk is heightened because Go is widely used across our engineering teams.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and there
Erugo file-sharing platform up to version 0.2.14 has a CVSS 10.0 path traversal allowing authenticated users to read any
Critical certificate validation bypass in Go crypto/tls during session resumption. If ClientCAs or RootCAs fields are mu
WAGO PFC200 G2 PLC (firmware affected) allows privilege escalation through cookie manipulation. Users can modify cookie
Authentication bypass in WeGIA charitable institution management system before 3.6.5. The adicionar_tipo_docs_atendido.p
CGI path splitting vulnerability in FrankenPHP before 1.11.2 — Unicode characters bypass path validation during CGI proc
net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization by
Free5gc NRF 1.4.0 has an authorization bypass in access token generation that allows authenticated users to request toke
Algo 8028 Control Panel version 3.3.3 contains a command injection vulnerability in the fm-data.lua endpoint that allows
Denial of service in PocketBase versions prior to 0.22.48 (0.22.x branch) and 0.23.0 through 0.39.6 (0.23.0+ branch) all
EUVD-2026-123111
NVD
CVE.org
EPSS
VulDB
Exploit-DB