GHSA-jgj7-3254-vwmv
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious Go module or crafted PE object
-
DeliveryVictim builds the untrusted package (go build/go get)
-
ExploitCrafted cgo_import_dynamic or PE DLL name injects linker arguments
-
Executioncmd/cgo/cmd/link emit unsafe '-l<name>' flag with '..'/special chars
-
PersistExternal linker references arbitrary file on disk
-
ImpactCode execution / high-impact compromise at build time
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires the victim to compile attacker-controlled code with the Go toolchain: either (a) building a package containing a malicious '//go:cgo_import_dynamic' directive whose library name the compiler validated only by its first character (and skipped entirely in cgo-generated files), or (b) on Windows specifically, linking against a crafted PE object file whose imported DLL name contains '..' path traversal, path separators, ':', or a leading '-'/'@', which cmd/cgo and cmd/link failed to validate before emitting '-l<name>' to the external linker. Cgo must be in play, and the PE/DLL-name path-traversal variant is limited to Windows. The key limiting factor is UI:R: the attack cannot fire against a running service - someone must actively build the hostile package, so environments that never compile untrusted third-party Go code are not exposed. Updating to Go 1.26.11 or 1.27.4 is the fix; the sources describe no configuration-based mitigation. |
| Impact | Signals diverge sharply. The input CVSS is 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H), implying remote, unauthenticated, high-impact code execution - but exploitation is gated on the victim actively building an attacker-controlled Go package or linking a crafted PE object, which is a supply-chain/build-time precondition rather than a service-facing one. The real-world exploitation signals are all cool: EPSS is 0.23% (14th percentile), there is no CISA KEV listing, and no public exploit is identified in the provided data. The vuln.today Decision label is 'this_week', not act_now/emergency, which is consistent with a serious-but-not-under-active-exploitation toolchain flaw. CWE-88 (argument/parameter injection into the external linker) supports the HIGH technical-impact rating. Net: this is a genuine priority for anyone building untrusted Go code (especially on Windows CI runners), but the low EPSS and absence of KEV/POC indicate it is not an imminent mass-exploitation threat - treat it as scheduled toolchain patching, not incident response. Note the UI:R requirement means the headline 8.8 overstates exposure for environments that never compile third-party code. |
| Exploit ScenarioDerived | An attacker publishes a malicious Go module (or a package shipping a crafted PE object) and lures a developer or CI pipeline into building it. During compilation, the crafted //go:cgo_import_dynamic directive or the PE-extracted DLL name injects '-l<name>' arguments - including '..' path traversal or special characters - into the external linker, letting it reference arbitrary files on disk and leading to high-impact compromise at build time. No public exploit is identified at time of analysis; because exploitation requires the victim to build the hostile package (UI:R) and the attack is low-complexity (AC:L) once that occurs, the practical bar is social/supply-chain delivery rather than technical difficulty. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 16, 2026
Malicious Go packages can smuggle unsafe library arguments into the external linker, letting a crafted '//go:cgo_import_dynamic' directive or a hand-built PE object file turn a build step into arbitrary file access on the host. Affected are the Go compiler, cgo and linker (cmd/compile, cmd/cgo, cmd/link) in releases before 1.26.11 and in the 1.27 line before 1.27.4; the DLL-name path-traversal variant is Windows-only. The CVSS 8.8 vector is AV:N/AC:L/PR:N/UI:R, meaning the attack is unauthenticated but cannot fire against a running service - a developer must actually compile the hostile package, so only environments that build untrusted third-party Go code are exposed. EPSS is low at 0.23% (14th percentile) and no public exploit has been identified at time of analysis, though the issue is tracked for remediation this week given the high confidentiality, integrity and availability impact on builder machines.
Earlier versions of this analysis (1)
The Go toolchain carries an as-yet-undisclosed security defect tracked as CVE-2026-97042, one of twelve CVEs that the Go team pre-announced as being fixed in Go 1.27.4 and Go 1.26.11. The pre-announcement itself contains no description of the affected package, the triggering operation, the impact, or the prerequisites, so the scope is only implied to be code shipped with the Go standard library or runtime in releases prior to those two versions. There is no public exploit identified at time of analysis, no KEV listing, and no EPSS data; the vuln.today decision label is awaiting_data, meaning severity and urgency cannot be meaningfully quantified until the full Go security release notes are published.
RemediationAI
Vendor-released patches are available: upgrade to Go 1.26.11 or Go 1.27.4, which restore full character validation of library names in '//go:cgo_import_dynamic' directives (including cgo-generated files on Windows) and cause cmd/cgo and cmd/link to reject PE imported DLL names containing path separators, '..', ':', or a leading '-' or '@'. Rebuild with the patched toolchain rather than only updating source dependencies, since the defect lives in the compiler, cgo and linker themselves. The sources describe no configuration-based mitigation, so the complete fix is the toolchain update; as a compensating control where patching must be staged, avoid compiling untrusted third-party Go packages, particularly on Windows with cgo enabled, at the cost of blocking legitimate dependency builds. Track remediation through GO-2026-6849 (https://pkg.go.dev/vuln/GO-2026-6849), the upstream issue https://go.dev/issue/82568 and the golang-announce advisory at https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM, and treat builder and CI hosts that compile external Go code as the priority upgrade targets.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 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 an argument-injection problem (CWE-88) in the Go build pipeline. The '//go:cgo_import_dynamic' directive lets a package name a library that the toolchain forwards to the external linker; the compiler previously validated only the first character of that library name and skipped validation entirely for cgo-generated files. Separately, on Windows, cmd/cgo and cmd/link extracted imported DLL names from PE object files and emitted them as '-l<name>' flags without validating the name, so a DLL name containing '..' path traversal, path separators, ':' or a leading '-' or '@' could reference arbitrary files on disk or be reinterpreted as a linker flag. The underlying trust boundary is that Go source and object files are treated as build inputs rather than untrusted content, yet Go modules and vendored third-party code are routinely fetched and compiled. The fix tightens both sides: every character of the library name in '//go:cgo_import_dynamic' directives is validated, including in cgo-generated files on Windows, '..' path traversal is rejected, and cmd/cgo and cmd/link now reject PE imported DLL names containing path separators, '..', ':', or a leading '-' or '@'. Note that the CVSS metrics describe severity only; the available sources do not detail further trigger mechanics beyond the directive and PE-object paths described above.
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 package is network-delivered (AV:N) and low-complexity once built (AC:L) with no attacker privileges (PR:N), but the victim must actively build it (UI:R); linker argument injection yields full build-host compromise (C/I/A:H).
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Executive ViewAI
CVE-2026-97042 (CVSS 8.8) affects the Go compiler, cgo, and linker in releases prior to 1.26.11 and 1.27.x prior to 1.27.4, enabling arbitrary file access on build machines when developers compile crafted third-party Go code. Only environments that build untrusted Go packages are exposed - i.e., developers and CI/CD build agents - while run-time production services are not directly affected. Leadership should care because a compromise of a build host can pivot into source, secrets, and release artifacts, with high confidentiality, integrity, and availability impact.
Vendor-released patch: Go 1.26.11 and Go 1.27.4
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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-123103
NVD
CVE.org
EPSS
VulDB
Exploit-DB