Skip to main content

Go cmd/go EUVDEUVD-2026-123111

| CVE-2026-97034 HIGH
Command Injection (CWE-77)
8.8
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious cgo Go module
  2. Delivery
    Victim fetches and builds package
  3. Exploit
    GCC link spec includes untrusted *.spec file
  4. Execution
    Arbitrary commands execute at link time
  5. Impact
    Code 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Nov 05, 2026 - 23:17

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

cmd/go 0 <1.26.11
cmd/go 1.27.0-0 <1.27.4

Affected Packages

go toolchain fix: 1.26.11, 1.27.4
euvd cmd_go fix: 1.26.11, 1.27.4

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

Vendor (CNA) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 MEDIUM

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Nov 16, 2026 - 16:35 vuln.today
v2 - CVSS changed
CVSS changed
Nov 16, 2026 - 16:22 NVD
8.8 (HIGH)
Patch available
Nov 11, 2026 - 04:01 EUVD
CVE Published
Nov 05, 2026 - 22:29 oss-security
MEDIUM

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
High
Go toolchain is widely deployed across developer and CI build environments
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Golang

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2016-5386 HIGH
8.1 Jul 19

The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and there

CVE-2026-24897 CRITICAL POC
10.0 Jan 28

Erugo file-sharing platform up to version 0.2.14 has a CVSS 10.0 path traversal allowing authenticated users to read any

CVE-2025-68121 CRITICAL POC
10.0 Feb 05

Critical certificate validation bypass in Go crypto/tls during session resumption. If ClientCAs or RootCAs fields are mu

CVE-2022-50926 CRITICAL POC
9.8 Jan 13

WAGO PFC200 G2 PLC (firmware affected) allows privilege escalation through cookie manipulation. Users can modify cookie

CVE-2026-28408 CRITICAL POC
9.8 Feb 27

Authentication bypass in WeGIA charitable institution management system before 3.6.5. The adicionar_tipo_docs_atendido.p

CVE-2026-24895 CRITICAL POC
9.8 Feb 12

CGI path splitting vulnerability in FrankenPHP before 1.11.2 — Unicode characters bypass path validation during CGI proc

CVE-2019-14809 CRITICAL POC
9.8 Aug 13

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

CVE-2025-66719 CRITICAL POC
9.1 Jan 23

Free5gc NRF 1.4.0 has an authorization bypass in access token generation that allows authenticated users to request toke

CVE-2022-50909 HIGH POC
8.8 Jan 13

Algo 8028 Control Panel version 3.3.3 contains a command injection vulnerability in the fm-data.lua endpoint that allows

CVE-2026-82410 HIGH POC
8.7 Sep 16

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

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy