GHSA-428h-9j26-5fcf
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious cgo Go module
-
DeliveryVictim fetches and builds module
-
ExploitCrafted #cgo flags redirect compiler/linker
-
ExecutionToolchain loads attacker files/tools
-
ImpactArbitrary code executes at build time
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 | Exploitation requires the victim to build a Go package that uses cgo where the attacker controls the package's '#cgo' directives, with cgo enabled (CGO_ENABLED=1, the default when a C compiler is present) and a GCC/Clang/GNU ld.bfd toolchain in use. The specific triggers are attacker-supplied flags: '--sysroot' (GCC/Clang) relocating compiler subprograms, spec files, and CRT startup objects to an attacker directory; '-target' (Clang) falling back to executing target helper tools from the current working directory; '-isysroot' and '-Wl,-syslibroot' passing a regular file to GNU ld.bfd that is interpreted as a positional linker script; and '-x' specifying arbitrary compiler input languages. Limiting factors: the attacker does not get code execution until the victim actually compiles the malicious package (UI:R), cgo must be enabled, and the relevant C toolchain must be present; fixed Go versions disallow '--sysroot' and '-target', verify '-isysroot'/'-Wl,-syslibroot' do not point to regular files, and restrict '-x' to C, C++, Objective-C, and assembler. |
| Impact | Signals here mostly agree but temper raw severity. The CVSS 3.1 base score is 8.8 (High) with vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - network-reachable, low complexity, no privileges, but requiring user interaction, namely a developer actually building the malicious package. EPSS is low at 0.25% (17th percentile), the CVE is NOT on CISA KEV, and the input provides no PoC or exploit reference, so by the available signals this is no public exploit identified at time of analysis and there is no evidence of active exploitation. The vuln.today Decision label is 'this_week', which matches the picture of a serious but not emergency-grade toolchain/supply-chain issue: real impact (build-time arbitrary code execution) gated behind the social/operational step of getting a target to compile attacker-controlled cgo code. The AV:N rating reflects that malicious code is typically delivered as a fetched Go module, but the actual trigger is local build execution and is gated by UI:R - worth noting the network vector overstates reachability since nothing fires until the victim builds. Net: a genuine priority for CI pipelines and developer machines that build third-party Go modules, but low EPSS and absence from KEV indicate it is not being broadly exploited and should be patched on a normal expedited cycle rather than as an incident. |
| Exploit ScenarioDerived | An attacker publishes (or compromises) a Go module that uses cgo and embeds hostile '#cgo' compiler/linker flags such as '--sysroot', '-target', '-isysroot', '-Wl,-syslibroot', or '-x'. When a developer or CI system fetches and builds that module with cgo enabled, the flags redirect GCC/Clang/GNU ld.bfd to attacker-controlled subprograms, spec files, CRT objects, helper tools, or a file interpreted as a linker script, executing arbitrary code on the build machine. No public exploit was identified in the provided data, but the technique is fully described in the advisory and requires only that the victim build the package. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 16, 2026
Arbitrary code execution at build time in Go cmd/go allows a malicious cgo-enabled package to run attacker-controlled compiler and linker subprocesses when a victim builds it. Affected versions are cmd/go 1.27.0-0 up to but not including 1.27.4 and 0 up to but not including 1.26.11; exploitation requires cgo enabled and a GCC, Clang or GNU ld.bfd toolchain, with user interaction because the victim must perform the build. A vendor patch is available, no public exploit was identified at time of analysis, and EPSS is 0.25% (17th percentile).
Earlier versions of this analysis (1)
The Go security team has pre-announced CVE-2026-97033 as one of twelve CVE identifiers scheduled to be addressed in the upcoming Go 1.27.4 and Go 1.26.11 releases. The pre-announcement discloses only the CVEID and the two release vehicles that will carry the fixes - it does not name the affected package or component, the deployment mode, the severity, or the trigger condition, and no CVSS vector or CWE is available. No public exploit code or proof-of-concept reference is present in the available sources, there is no CISA KEV listing, and no EPSS score has been supplied, so exploitation status at time of analysis is unknown; the only confirmed fact is that a fix is expected in the two stated maintenance releases.
RemediationAI
Upgrade Go to 1.27.4 or 1.26.11; these vendor-released versions disallow --sysroot and -target in '#cgo' flags, verify -isysroot and -Wl,-syslibroot do not point to regular files, and restrict -x to C, C++, Objective-C, and assembler. Apply the update to build hosts and CI systems that compile Go modules, especially any that build untrusted packages. If upgrading is not immediately possible, set CGO_ENABLED=0 for builds that do not require cgo to remove the described cgo-directive path, accepting that cgo-dependent packages will not compile. Advisories: https://go.dev/issue/82577, https://pkg.go.dev/vuln/GO-2026-6858, https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM, https://seclists.org/oss-sec/2026/q4/532.
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
Go's cgo mechanism lets packages invoke C, C++, Objective-C and assembler toolchains through '#cgo' directives, and those directives are taken from package source, so a malicious module can steer compiler and linker subprocesses. This is CWE-77 command injection rather than memory corruption: --sysroot in GCC and Clang relocates compiler subprograms, spec files and CRT startup objects to an attacker-controlled directory; Clang -target can fall back to executing target helper tools from the current working directory when they are not found in PATH; -isysroot and -Wl,-syslibroot can pass a regular file on disk to GNU ld.bfd, which interprets it as a positional linker script; and -x permits arbitrary compiler input languages beyond those supported by cgo. Fixed Go versions disallow --sysroot and -target in '#cgo' flags, verify -isysroot and -Wl,-syslibroot do not point to regular files, and restrict -x to C, C++, Objective-C and assembler. Exploitation requires CGO_ENABLED=1 and a relevant GCC, Clang or GNU ld.bfd toolchain, and the trigger occurs only when the victim builds the malicious package.
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) and triggers reliably (AC:L, PR:N) but only once the victim builds it (UI:R), yielding full code execution on the build host (C/I/A:H).
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Executive ViewAI
CVE-2026-97033 is a high-severity build-time flaw in Go's cmd/go tool that allows a malicious package to execute arbitrary code on developer machines during compilation. While no active exploitation has been observed, the vulnerability puts engineering teams at risk from compromised or untrusted Go modules, potentially leading to data breaches or supply chain compromise. Leadership should prioritize this because developers routinely build third-party code, and a single malicious dependency could infect internal systems or steal intellectual property.
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.
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-123112
NVD
CVE.org
EPSS
VulDB
Exploit-DB