CVE-2026-97034: Arbitrary command execution via GCC spec files in cgo linker search directories in cmd/go
Noroxi assessment
Priority: Monitor (action score 0/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.28% (FIRST EPSS).
- Fixed version: Go toolchain cmd/go 1.26.11, 1.27.4; azl3 gcc 13.2.0-7 on Azure Linux 3.0 Release Notes; azl3 golang 1.26.10-1 on Azure Linux 3.0 Release Notes.
Low priority for now. Upgrade to Go toolchain cmd/go 1.26.11, 1.27.4; azl3 gcc 13.2.0-7 on Azure Linux 3.0 Release Notes; azl3 golang 1.26.10-1 on Azure Linux 3.0 Release Notes or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files ("specs" or "*.spec"). When linking with "-fopenmp", "-fopenacc", or "-fsanitize=" in "#cgo LDFLAGS", GCC's built-in link spec evaluates "%:include(libgomp.spec)" or "%:include(libsanitizer.spec)" and searches for spec files in "-L" and sysroot directories (including subdirectories and multilib sibling directories such as "../lib64"), as well as the working directory when "-fopenmp" or "-fopenacc" is used or when "-fsanitize=" is combined with "-static" or "-static-lib*". The go command now rejects "-L", "-isysroot", and "-Wl,-syslibroot" directories (and the working and package directories when applicable) that contain GCC spec files, and disallows "@" and "-" prefixes in "-fsanitize=" compiler flag values.
- Published
- Nov 11, 2026
- Updated
- Nov 12, 2026
- EPSS
- 0.2% · 20th percentile
- CWE
- CWE-77
Report tools
Action score
0
Low priority for now.
- CVSS
- 0 / 40 · —
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Go). Independent of NVD's CPE analysis and usually ahead of it.
Go toolchain cmd/go
- before 1.26.11affected · semver
- 1.27.0-0 and later · before 1.27.4affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.24 | go | before 1.26.11-r0 | 1.26.11-r0 |
| Debian:12 | golang-1.19 | from 0 | — |
| Debian:13 | golang-1.24 | from 0 | — |
| Debian:14 | golang-1.26 | before 1.26.11-1 | 1.26.11-1 |
| Debian:14 | golang-1.27 | before 1.27.4-1 | 1.27.4-1 |
| Go | toolchain | from 1.27.0-0 · before 1.27.4 | 1.27.4 |
| Go | toolchain | before 1.26.11 | 1.26.11 |
| openSUSE:Tumbleweed | go1.26 | before 1.26.11-1.1 | 1.26.11-1.1 |
| openSUSE:Tumbleweed | go1.27 | before 1.27.4-1.1 | 1.27.4-1.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | go1.26 | before 1.26.11-150000.1.39.1 | 1.26.11-150000.1.39.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | go1.27 | before 1.27.4-150000.1.18.1 | 1.27.4-150000.1.18.1 |
Same product
go toolchain: all recordsOther highest-scoring records for the same primary product.
- CVE-2023-24531Output of "go env" does not sanitize values in cmd/go39Monitor
- CVE-2024-45340GOAUTH credential leak in cmd/go35Monitor
- CVE-2026-56865Fix transparency log tile verification bypass in golang.org/x/mod/sumdb/tlog33Monitor
Published before and after this one in the same product
- ← EarlierCVE-2026-94447Oct 8, 2026 · Checksum database bypass for golang.org/toolchain in cmd/go31Monitor
- ← EarlierCVE-2026-97033Nov 11, 2026 · Unexpected code execution via --sysroot, -target, -isysroot, -Wl,-syslibroot, and -x cgo flags in cmd/go0Monitor
- Later →CVE-2026-97035Nov 11, 2026 · Unexpected code execution and arbitrary file write via Clang -gen-* and GCC -gnat* flags in cgo in cmd/go0Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Go toolchain cmd/go | 1.26.11 | Vendor (CNA) |
| Go toolchain cmd/go | 1.27.4 | Vendor (CNA) |
| azl3 gcc 13.2.0-7 on Azure Linux 3.0 | Release Notes | Microsoft (MSRC) |
| azl3 golang 1.26.10-1 on Azure Linux 3.0 | Release Notes | Microsoft (MSRC) |
| azl3 golang 1.26.11-1 on Azure Linux 3.0 | Release Notes | Microsoft (MSRC) |
| azl3 golang 1.27.3-1 on Azure Linux 3.0 | Release Notes | Microsoft (MSRC) |
| azl3 golang 1.27.4-1 on Azure Linux 3.0 | Release Notes | Microsoft (MSRC) |
| azl3 python-tensorboard 2.16.2-6 on Azure Linux 3.0 | Release Notes | Microsoft (MSRC) |
| azl3 tensorflow 2.16.1-11 on Azure Linux 3.0 | Release Notes | Microsoft (MSRC) |
| alpine:go | 1.26.11-r0 · Alpine:v3.24 | Package registry (OSV) |
| debian:golang-1.26 | 1.26.11-1 · Debian:14 | Package registry (OSV) |
| debian:golang-1.27 | 1.27.4-1 · Debian:14 | Package registry (OSV) |
| Go:toolchain | 1.26.11 | Package registry (OSV) |
| Go:toolchain | 1.27.4 | Package registry (OSV) |
| opensuse:go1.26 | 1.26.11-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:go1.27 | 1.27.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:go1.26 | 1.26.11-150000.1.39.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7 | Package registry (OSV) |
| suse:go1.27 | 1.27.4-150000.1.18.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Fix recordedsame day
- Published
- TodayNov 16, 2026+5 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2026-970330 days apartUnexpected code execution via --sysroot, -target, -isysroot, -Wl,-syslibroot, and -x cgo flags in cmd/go0Monitor
Not on record for this CVE: patch commit or PR link · researcher credit · public bounty program.
Technical details
No CVSS vector for this record, so attack conditions can't be derived.
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- LDAP InjectionCAPEC-136likelihood: High · High
- Command DelimitersCAPEC-15likelihood: High · High
- IMAP/SMTP Command InjectionCAPEC-183Medium
- Command InjectionCAPEC-248likelihood: Medium · High
- Manipulating Writeable Terminal DevicesCAPEC-40likelihood: High · Very High
- Exploiting Multiple Input Interpretation LayersCAPEC-43likelihood: Medium · High
- Manipulating Writeable Configuration FilesCAPEC-75likelihood: High · Very High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
ATT&CK techniques
—
Change log (2)
- Exploit maturity— → none
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.