PatchSiren cyber security CVE debrief
CVE-2026-97036 Go toolchain CVE debrief
CVE-2026-97036 debrief: On Darwin platforms, building a malicious package that uses cgo could lead to arbitrary code execution during build processes due to improper handling of LDFLAGS directives by the Apple linker. This vulnerability allows loading of arbitrary LTO plugin dynamic libraries. The Go command now disallows certain flags and patterns to mitigate this issue. Defenders should assess exposure and prioritize patching, reviewing build processes for potential malicious package usage and ensuring updated Go versions are deployed.
- Vendor
- Go toolchain
- Product
- toolchain
- CVSS
- HIGH 8.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-11
- Original CVE updated
- 2026-11-17
- Advisory published
- 2026-11-11
- Advisory updated
- 2026-11-17
Who should care
Defenders responsible for Go toolchain deployments, particularly those using Darwin and cgo, should assess exposure and prioritize patching. Review build processes for potential malicious package usage and ensure updated Go versions are deployed.
Why it matters
CVE-2026-97036 is a vulnerability in the Go toolchain on Darwin platforms that could allow arbitrary code execution during build processes using cgo. Defenders should prioritize verifying and applying patches, reviewing build processes, and ensuring updated Go versions are deployed to mitigate potential risks.
- Potential for arbitrary code execution during build processes on Darwin platforms
- Need for verification and patching of affected Go toolchain versions
- Importance of reviewing build processes for malicious package usage
- Requirement for updated Go versions to be deployed
Technical summary
The Go toolchain on Darwin platforms has a vulnerability where building a malicious package that uses cgo could lead to arbitrary code execution. This occurs due to the Apple linker's handling of '-l to_library' in '#cgo LDFLAGS' directives, allowing loading of arbitrary LTO plugin dynamic libraries. The Go command has been updated to disallow certain flags and patterns to mitigate this issue. Defenders should prioritize verifying and applying patches for Go toolchain versions affected by this vulnerability, particularly for environments using Darwin and cgo.
Defensive priority
Defenders should prioritize verifying and applying patches for Go toolchain versions affected by this vulnerability, particularly for environments using Darwin and cgo. Review build processes for malicious package usage and ensure updated Go versions are deployed.
Recommended defensive actions
- Verify and apply patches for Go toolchain versions affected by this vulnerability
- Review build processes for malicious package usage
- Ensure updated Go versions are deployed
- Monitor for suspicious build activities
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
Evidence from the Go project and OSV database indicates that building a malicious package with cgo on Darwin could lead to arbitrary code execution due to improper handling of LDFLAGS directives. The Go command now disallows certain flags to mitigate this issue.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-97036 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-97036
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-97036 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97036
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Arbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/Go/GO-2026-6855.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://go.dev/cl/862149
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://go.dev/issue/82574
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
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.