{"id":"CVE-2026-97036","published":"2026-11-11T03:13:16Z","modified":"2026-11-17T04:55:26Z","title":"Arbitrary code execution during build on darwin via \"-l to_library\" in cgo in cmd/go","vendor":"Go toolchain","product":"cmd/go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00706,"percentile":0.54291,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://go.dev/cl/862149","tags":[]},{"url":"https://go.dev/issue/82574","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-6855","tags":[]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":10.86},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"go-toolchain","affectedVersions":[{"vendor":"Go toolchain","product":"cmd/go","versions":["< 1.26.11",">= 1.27.0-0, < 1.27.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-16T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.26.11",">=1.27.0-0, <1.27.4"],"patched":["1.26.11","1.27.4"],"from":["GO-2026-6855"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-123109","exploited":false,"provenance":"source"}}