GHSA-f47v-97w8-qc5g
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious cgo Go module
-
DeliveryVictim fetches and runs go build
-
ExploitCrafted #cgo LDFLAGS injects linker-script input
-
ExecutionHost linker (e.g. ld.bfd) processes script
-
ImpactArbitrary code execution in build environment
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to build (go build / go install) a package that imports an attacker-crafted module using cgo, where the malicious '#cgo LDFLAGS' directives pass linker-script-interpreted arguments to the host linker - so the hard prerequisite is compiling untrusted cgo code, reflected by UI:R in the CVSS vector. Two concrete trigger paths are described: (1) split '-Wl,' flags that consume a following argument ('-Wl,-rpath', '-Wl,--just-symbols', '-Wl,-undefined') previously accepted a bare second token without a '-Wl,' prefix, which the compiler driver forwards to the linker as a positional input file; and (2) specifically when the host toolchain uses GNU ld.bfd, flags such as '-framework', '-Wl,-framework', '-Wl,-undefined', '-Wl,--just-symbols', '-Wl,-R', '-Wl,-subsystem', and (on non-Darwin platforms) '-Wl,-sectcreate' cause ld.bfd to treat their arguments as linker scripts if they name a real file on disk. Limiting factors: no exploitation occurs against a developer who only builds trusted/vendored code; the ld.bfd-dependent variants require that specific linker; and affected versions are limited to cmd/go 1.27.0-1.27.3 and releases below 1.26.11, with upgrade to 1.27.4 or 1.26.11 removing the issue. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 8.8) describes a network-sourced but user-interaction-gated flaw: the attacker-controlled artifact is a malicious cgo-using Go module, and the vulnerability only triggers when a victim builds it (UI:R), yielding full confidentiality, integrity, and availability compromise via arbitrary code execution at link time. The real-world risk signals are mixed and point to developer/CI supply-chain exposure rather than mass internet exploitation: EPSS is low at 0.25% (17th percentile), the CVE is NOT on CISA KEV, and the vuln.today decision label is 'this_week' (not act_now/emergency), which together argue against imminent widespread exploitation. There is no confirmed PoC in the input - the references are vendor/advisory links (oss-security, go.dev CL/issue, Go vuln DB), not exploit code - so this should be treated as 'no public exploit identified at time of analysis' and the RCE/Code Injection tags reflect the vulnerability class, not demonstrated exploitation. The key caveat is that the high CVSS partly reflects the build-time code-execution impact while the attack requires the victim to fetch and compile untrusted code (and, for a subset of the flag variants, that the host toolchain uses GNU ld.bfd); defenders who only build trusted, vendored dependencies face materially lower practical risk than the 8.8 score alone suggests. |
| Exploit ScenarioDerived | An attacker publishes a Go module that uses cgo and embeds crafted '#cgo LDFLAGS' directives (for example a split '-Wl,-rpath' flag whose second token is a bare path, or flags that GNU ld.bfd interprets as a linker script). When a developer or CI pipeline fetches and runs 'go build' on code that imports this module, the compiler driver passes the attacker-supplied file to the host linker, which processes it as a linker script and executes arbitrary code in the build environment. No public exploit code is identified in the provided sources; the references are advisories and the fix changelist only. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 16, 2026
Arbitrary code execution in the Go cmd/go toolchain can occur at link time when a developer builds an attacker-crafted cgo module whose #cgo LDFLAGS make the host linker interpret arguments as positional input files or linker scripts. Affected releases are cmd/go 1.27.0 through 1.27.3 and versions below 1.26.11, with fixes in 1.27.4 and 1.26.11. Exploitation requires the victim to build the untrusted module (UI:R), no public exploit was identified at time of analysis, and EPSS is 0.25% (17th percentile).
Earlier versions of this analysis (1)
The Go team's oss-security pre-announcement lists CVE-2026-97037 among twelve identifiers that will be fixed by the Go 1.27.4 and Go 1.26.11 releases. The pre-announcement deliberately omits the affected package, the trigger conditions, and the impact class, so it is not possible to state what an attacker could achieve against a Go-built program or toolchain from this data alone. No CVSS vector, CWE, CPE, EPSS score, or CISA KEV entry is associated in the supplied sources, and no exploitation or proof-of-concept information is provided; the only confirmed fact is that remediation is delivered in Go 1.27.4 and Go 1.26.11.
RemediationAI
Upgrade to Go 1.27.4 if on the 1.27 branch, or to Go 1.26.11 if on older branches; these are the vendor-fixed releases for cmd/go. Vendor details are at https://go.dev/issue/82573 and https://pkg.go.dev/vuln/GO-2026-6854. Until upgraded, the exposure is limited to builds that compile untrusted cgo code, so restrict builds to trusted or vendored modules and review #cgo LDFLAGS in dependencies; this reduces exposure but blocks use of otherwise unvetted cgo dependencies and does not replace the fixed go command. The repair enforces a '-Wl,' prefix on the second token of split '-Wl,' flags except '-Wl,-R', rejects references to linker script files, and disallows bare '-Wl,--warn-backrefs-exclude'.
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
cgo lets Go packages pass flags to the host C linker through #cgo LDFLAGS. The flaw is a code-injection class (CWE-94) in cmd/go's handling of split '-Wl,' flags: values such as '-Wl,-rpath', '-Wl,--just-symbols', and '-Wl,-undefined' previously accepted a bare second token without a '-Wl,' prefix, which the compiler driver passed to the linker as a positional input file. With GNU ld.bfd, flags including '-framework', '-Wl,-framework', '-Wl,-undefined', '-Wl,--just-symbols', '-Wl,-R', '-Wl,-subsystem', and (on non-Darwin platforms) '-Wl,-sectcreate' could cause the linker to interpret their arguments as linker scripts when those arguments named a regular file on disk. The repaired go command requires a '-Wl,' prefix on the second token of split '-Wl,' flags except '-Wl,-R', verifies those flags do not reference linker script files, and disallows bare '-Wl,--warn-backrefs-exclude'.
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
Malicious module is delivered over the network (AV:N) with no attacker privileges (PR:N), but the victim must build the untrusted cgo code (UI:R), giving full build-host code execution (C/I/A:H).
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Executive ViewAI
CVE-2026-97037 is a high-severity vulnerability in the Go toolchain (cmd/go) that allows arbitrary code execution when a developer builds a malicious cgo module. This affects engineering teams using Go versions 1.27.0-1.27.3 or below 1.26.11, and could lead to compromised build systems or developer workstations. Leadership should prioritize patching because exploitation requires a developer to pull in untrusted code, which is a common scenario in open-source-dependent development.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-123108
NVD
CVE.org
EPSS
VulDB
Exploit-DB