GHSA-q9p5-q4jx-v656
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious Go module
-
DeliveryVictim fetches and builds package
-
ExploitLinker ingests crafted .syso/LDFLAGS/-L inputs
-
ExecutionInject linker flags or load LTO plugin
-
ImpactExecute arbitrary code at link time
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 or compile an attacker-controlled Go package/module containing malicious linker inputs: a '.syso' file, direct object/library inputs in '#cgo LDFLAGS', or libraries placed in '-L' directories, which the go command passed to the external linker without validating format or checking for embedded options. The malicious input abuses GNU ld implicit linker scripts, '-l:<filename>' or path-separator '-l' values, PE/COFF '.drectve' sections (Windows), Mach-O 'LC_LINKER_OPTION' load commands (Darwin), or LTO IR sections (ELF/PE-COFF/Mach-O). Limiting factors: the flaw triggers only at build/link time, so the victim must obtain and compile untrusted code (UI:R) - it does not affect already-built deployed binaries; affected versions are the go command before 1.27.4 (1.27.x branch) and before 1.26.11. Updating to a fixed toolchain, which adds validation of these inputs, is the fix. |
| Impact | This is a code-execution flaw in the Go toolchain's handling of linker inputs (CWE-94), rated CVSS 8.8 with vector AV:N/AC:L/PR:N/UI:R - network-reachable via module distribution, low complexity, no privileges, but requiring user interaction (the victim must build the malicious package). The signals point to a developer/build-supply-chain risk rather than a remotely exploitable production service: real-world abuse requires a victim to fetch and compile attacker-controlled Go code, which is why UI:R is present. Exploitation signals are moderate and mutually consistent: EPSS is low at 0.25% (17th percentile), there is no CISA KEV listing, and no public exploit is identified in the input, indicating no evidence of active or imminent mass exploitation. However, the vuln.today priority is 'this_week' and a fixed toolchain is available, so this should be patched promptly even though EPSS/KEV do not indicate widespread exploitation. Note a data conflict: the input Tags label this 'Microsoft', but the affected product is the Go command (cmd/go, Google), a cross-platform toolchain - the Windows PE/COFF '.drectve' angle is only one of several affected platforms (also Darwin Mach-O and ELF/LTO). |
| Exploit ScenarioDerived | An attacker publishes or compromises a Go module containing a malicious '.syso' file or crafted '#cgo LDFLAGS'/'-L' inputs. When a developer or CI system runs 'go build'/'go install' on code that imports the package, the external linker processes the attacker-supplied inputs and either injects unallowlisted linker flags (via PE/COFF '.drectve', Mach-O 'LC_LINKER_OPTION', or GNU ld linker scripts) or loads an LTO plugin, resulting in arbitrary code execution on the build machine at link time. No public exploit is identified at time of analysis, and user interaction (building the package) is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 16, 2026
Code execution at link time in the Go toolchain (cmd/go) lets a malicious package smuggle unvalidated linker inputs - ".syso" files, direct object or library inputs in "#cgo LDFLAGS", or libraries placed in "-L" directories - past the go command and into the external linker. The flaw affects cmd/go 1.27.x before 1.27.4 and 1.26.x before 1.26.11, is rated CVSS 8.8 (AV:N/AC:L/PR:N/UI:R) because the victim must build or compile the attacker's module, and does not affect binaries that are already built and deployed. No public exploit code has been identified at time of analysis (EPSS 0.25%, 17th percentile); a vendor patch is available and the priority is this week.
Earlier versions of this analysis (1)
The Go programming language toolchain is affected by a security defect tracked as CVE-2026-97038, one of twelve CVEs named in the pre-announcement for the upcoming Go 1.27.4 and Go 1.26.11 security releases. The pre-announcement does not state which Go package or standard library component is affected, what triggering operation exposes a program, or what an attacker gains, so impact, prerequisites and the assessed severity remain undetermined; no CVSS vector, CWE mapping or CPE data accompanies the notice. No public exploit was identified at time of analysis, no CISA KEV listing or EPSS score is associated with the record, and the trigger is not described in the available sources, so risk cannot be meaningfully assessed until the full Go advisory is published with the releases.
RemediationAI
Vendor-released patch: upgrade the Go toolchain to 1.27.4 (1.27.x branch) or 1.26.11 (1.26.x branch), which adds validation of ".syso" files, direct linker inputs and libraries in "-L" directories and disallows "-l:<filename>" and ":", "=" or path separators in "-l" flags; the fix commit is referenced at https://go.dev/cl/862151 and the advisory at https://pkg.go.dev/vuln/GO-2026-6853. Updating the toolchain is the complete fix described by the vendor. Until the upgrade is rolled out across developer workstations and CI build images, the only meaningful reduction in exposure follows from the exploitation precondition: builds that never compile attacker-controlled Go packages are not triggered, so restrict build pipelines and module fetches to vetted, trusted module sources rather than untrusted or arbitrary third-party modules - note this is a stopgap that leaves the underlying validation gap in place and does not substitute for the patched toolchain.
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 root cause is CWE-94 code injection into the build pipeline: the go command handed linker inputs to the external system linker without validating their format or screening for embedded linker options. Because GNU ld interprets its own implicit linker scripts, and because PE/COFF objects can carry ".drectve" sections, Mach-O objects can carry "LC_LINKER_OPTION" load commands, and ELF/PE-COFF/Mach-O objects can carry LTO intermediate-representation sections, an attacker-supplied "library" or ".syso" file could inject flags the toolchain never allowlisted, invoke GCC or LLVM LTO plugins, or be reached through "-l:<filename>" and "-l" values containing ":", "=" or path separators. The fixed go command verifies that ".syso" files, direct linker inputs and libraries in "-L" directories are valid binary objects or archives free of unallowlisted ".drectve" directives, "LC_LINKER_OPTION" load commands and LTO IR sections, and rejects "-l:<filename>" plus ":", "=" and path separators in "-l" flags. The trigger occurs only at build/link time on the developer or CI host; the issue is a toolchain input-validation gap rather than a flaw in compiled output.
Know when Go 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 package is network-distributed (AV:N) and reliably triggers at link time (AC:L/PR:N), but the victim must build it (UI:R); link-time code execution yields full C:H/I:H/A:H on the build host.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Executive ViewAI
CVE-2026-97038 is a high-severity vulnerability in the Go toolchain that allows a malicious software package to execute arbitrary code on a developer's machine when that package is compiled. Organizations developing or building Go-based applications are at risk, as a single compromised or untrusted dependency could lead to unauthorized access to build environments and source code.
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 net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and there
Critical certificate validation bypass in Go crypto/tls during session resumption. If ClientCAs or RootCAs fields are mu
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
Casdoor through 4.4.0 exposes its instance-wide built-in JWT signing private key unmasked through the /api/get-certs and
Host header injection in Nezha 2.2.3's OAuth2 redirect endpoint (/api/v1/oauth2/{provider}) allows an unauthenticated re
Session cross-wiring in SUSE NeuVector before 5.6.1 allows an unauthenticated remote attacker to obtain another user's a
Unauthenticated path traversal in Uber Kraken through 0.1.29 allows remote attackers to read files outside the configure
The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import pa
Denial of service in Temporal Server allows an authenticated caller holding at least namespace read permission to crash
Account takeover in Klever-Go's KleverUpdateAccountPermission built-in (all versions prior to 1.7.20) allows an attacker
Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r
EUVD-2026-123107
NVD
CVE.org
EPSS
VulDB
Exploit-DB