PatchSiren cyber security CVE debrief
CVE-2026-97042 Go toolchain CVE debrief
A vulnerability in the Go toolchain's cmd/cgo, cmd/compile, and cmd/link components allows for linker flag injection via cgo_import_dynamic and PE DLL names. This issue arises from insufficient validation of library names in cgo_import_dynamic directives and imported DLL names on Windows. An attacker could craft a malicious package to pass unsafe library arguments to the external linker, potentially referencing arbitrary files on disk.
- Vendor
- Go toolchain
- Product
- cmd/cgo
- CVSS
- HIGH 8.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-11
- Original CVE updated
- 2026-11-16
- Advisory published
- 2026-11-11
- Advisory updated
- 2026-11-16
Who should care
Defenders responsible for Go toolchain deployments, especially those compiling untrusted or user-supplied code, should assess exposure and consider upgrading to patched versions. This includes operators managing affected platforms, vulnerability management teams, and security teams responsible for reviewing code integrity and ensuring secure compilation processes.
Why it matters
Defenders should prioritize assessing exposure in Go toolchain deployments, especially where untrusted or user-supplied code is compiled. The vulnerability allows for linker flag injection, potentially leading to arbitrary file references or elevation of privileges. Verify if your environment uses affected versions and consider upgrading. Monitor for suspicious compilation or linking activities.
- Potential for arbitrary file reference on disk through crafted DLL names.
- Possible elevation of privileges or unauthorized access.
- Need for verification of affected versions and remediation.
- Potential disruption of compilation and linking processes.
Technical summary
The Go toolchain's cmd/cgo, cmd/compile, and cmd/link components are vulnerable to linker flag injection. This occurs due to insufficient validation of library names in cgo_import_dynamic directives and imported DLL names on Windows. An attacker could craft a malicious package to pass unsafe library arguments to the external linker, potentially referencing arbitrary files on disk or leading to elevation of privileges. The vulnerability exists in versions before 1.26.11 or 1.27.4. Verify if your environment uses affected versions and consider upgrading.
Defensive priority
Defenders should prioritize assessing exposure in Go toolchain deployments, especially where untrusted or user-supplied code is compiled. Verify if your environment uses affected versions (before 1.26.11 or 1.27.4) and consider upgrading. Monitor for suspicious compilation or linking activities.
Recommended defensive actions
- Assess exposure by checking if your environment uses affected Go toolchain versions.
- Consider upgrading to version 1.26.11 or 1.27.4, or later.
- Monitor compilation and linking activities for suspicious behavior.
- Review and validate user-supplied code before compilation.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The CVE record and source item provide details on the vulnerability, including its description, affected versions, and references to patches and discussions. However, there is no information on known exploitation or specific attack vectors.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-97042 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-97042
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-97042 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97042
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Linker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/l
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/97xxx/CVE-2026-97042.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://go.dev/cl/862155
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://go.dev/issue/82568
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://pkg.go.dev/vuln/GO-2026-6849
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.