CVE-2026-97036: Arbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go
Vulnerability summary
CVE-2026-97036 is a high (CVSS 8.8) vulnerability in go toolchain cmd/go. EPSS estimates a 0.71% chance of exploitation in the next 30 days, higher than 54.7% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 19 · Related 19Timeline
- 11-11-2026PublishedVulnerability first disclosed.
- 17-11-2026Last modifiedVulnerability information updated.
Description
On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library <path>" in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.71%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard74 products
- azure-service-operatorAll versions (No fix recorded)
- commercial-chainloop-backendAll versions (No fix recorded)
- commercial-chainloop-cliAll versions (No fix recorded)
- commercial-expanso-edgeAll versions (No fix recorded)
- commercial-gitlab-rails-ee-19.1All versions (No fix recorded)
Ubuntu17 products
- golang-1.10All versions (No fix recorded)
- golang-1.13All versions (No fix recorded)
- golang-1.14All versions (No fix recorded)
- golang-1.16All versions (No fix recorded)
- golang-1.17All versions (No fix recorded)
Redhat12 products
- golang1.26< 0:1.26.10-0.2.hum1
- golang1.26-bin< 0:1.26.10-0.2.hum1
- golang1.26-docs< 0:1.26.10-0.2.hum1
- golang1.26-misc< 0:1.26.10-0.2.hum1
- golang1.26-src< 0:1.26.10-0.2.hum1
Wolfi7 products
- azure-service-operatorAll versions (No fix recorded)
- go-1.25All versions (No fix recorded)
- go-1.25-asmAll versions (No fix recorded)
- go-1.25-coverAll versions (No fix recorded)
- go-1.25-docAll versions (No fix recorded)
Debian4 products
- golang-1.19All versions (No fix recorded)
- golang-1.24All versions (No fix recorded)
- golang-1.26All versions (No fix recorded) | < 1.26.11-1
- golang-1.27All versions (No fix recorded) | < 1.27.4-1
Go1 product
- toolchain≥ 1.27.0-0, < 1.27.4
Go toolchain1 product
- cmd/go< 1.26.11 | ≥ 1.27.0-0, < 1.27.4
7 vendors · 116 products
References
20 linksShow all 20 references
- images.redhat.comARTICLE