CVE-2026-97041
Host linker flag injection via //go:cgo_* directives in cmd/compile and cmd/link
No exploitation reported by the sources we read.
- Published2026-11-11
- Fixed in1.27.4 · 1.26.11
- WeaknessCWE-88
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
Building a malicious package containing "//go:cgo_*" compiler directives could inject arbitrary flags into the external linker invocation on ELF platforms. The compiler and linker did not reject commas in "//go:cgo_import_dynamic", "//go:cgo_export_dynamic", "//go:cgo_export_static", "//go:cgo_import_static", and "//go:cgo_dynamic_linker" directives, and the linker passed the dynamic linker path using "-Wl,--dynamic-linker,<path>". Furthermore, the two-argument form of "//go:cgo_import_dynamic" (which is permitted in non-cgo Go source files) could overwrite the external symbol name of a symbol already marked for cgo export. A symbol name or dynamic linker path containing a comma or leading "@" could split "-Wl,--export-dynamic-symbol=" or "-Wl,--dynamic-linker," into arbitrary host linker flags or response file arguments. The compiler and linker now reject commas in "//go:cgo_*" symbol and dynamic linker directives, the linker passes "-Wl,--dynamic-linker=<path>", and "cgo_import_dynamic" no longer overwrites symbols exported via "cgo_export_dynamic" or "cgo_export_static".
Timeline
dates in UTC- 2026-11-1103:13CVE publishedCNA
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.27 | ≥ 1.27.0-0, < 1.27.4 | 1.27.4 | OSV |
| 1.26 | < 1.26.11 | 1.26.11 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA2 products
As Go, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Go toolchain cmd/compileother versions: not affected
package cmd/compilehttps://pkg.go.dev
Affected- < 1.26.11fixed in 1.26.11semver
- ≥ 1.27.0-0, < 1.27.4fixed in 1.27.4semver
- Go toolchain cmd/linkother versions: not affected
package cmd/linkhttps://pkg.go.dev
Affected- < 1.26.11fixed in 1.26.11semver
- ≥ 1.27.0-0, < 1.27.4fixed in 1.27.4semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-11-11
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- goAlpine:v3.24all versions · fixed in 1.26.11-r0
- go1.26SUSE:Linux Enterprise Server for SAP Applications 15 SP6all versions · fixed in 1.26.11-150000.1.39.1
- go1.26SUSE:Linux Enterprise Server for SAP Applications 15 SP5all versions · fixed in 1.26.11-150000.1.39.1
- go1.26SUSE:Linux Enterprise Server for SAP Applications 15 SP4all versions · fixed in 1.26.11-150000.1.39.1
- go1.26SUSE:Linux Enterprise Server 15 SP6-LTSSall versions · fixed in 1.26.11-150000.1.39.1
- go1.26SUSE:Linux Enterprise Server 15 SP5-LTSSall versions · fixed in 1.26.11-150000.1.39.1
- go1.26SUSE:Linux Enterprise Server 15 SP4-LTSSall versions · fixed in 1.26.11-150000.1.39.1
- go1.26SUSE:Linux Enterprise Module for Development Tools 15 SP7all versions · fixed in 1.26.11-150000.1.39.1
35 more package ranges on OSV.dev
Fix
- Update toolchain to 1.27.4 · 1.26.11
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-16
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-11-16
- CISA-ADPSSVC decisionnone2026-11-16
- CISA-ADPCVSS 3.18.82026-11-16
- CISA-ADPweakness (CWE)CWE-882026-11-16
- FIRST EPSSEPSS score0.2 %2026-11-15
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-113432same flawAzure Linux · MIT
- AZL-113462same flawAzure Linux · MIT
- AZL-113606same flawAzure Linux · MIT
- AZL-113654same flawAzure Linux · MIT
- EUVD-2026-123104same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-537w-q924-jhpmsame flawGitHub Advisory Database · CC-BY-4.0
- GO-2026-6850same flawGo Vulnerability Database · CC-BY-4.0
- openSUSE-SU-2026:12529-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:12540-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- SUSE-SU-2026:5226-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2026:5227-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 2026-11-11
- Last Modified
- 2026-11-16
- NVD status
- Awaiting Analysis
- GitHub Advisory
- GHSA-537w-q924-jhpm
Frequently asked questions
What is CVE-2026-97041?
Is CVE-2026-97041 actively exploited?
What is the CVSS score for CVE-2026-97041?
Running Go? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-537w-q924-jhpm
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- CISA Vulnrichment · CC0-1.0