{"id":"CVE-2026-97036","aliases":["GO-2026-6855"],"title":"Arbitrary code execution during build on darwin via \"-l to_library\" in cgo in cmd/go","titleSource":"Go","descriptionSource":"OSV","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.\n\nThe Apple linker recombines the separated arguments \"-l\" and \"to_library\" into \"-lto_library\", which loads an arbitrary LTO plugin dynamic library at link time.\n\nThe 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.","severity":"unknown","score":null,"published":"2026-11-11T02:51:11.000Z","modified":"2026-11-11T03:15:15.677Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Go","name":"toolchain","sources":[{"name":"OSV · GO-2026-6855","url":"https://osv.dev/vulnerability/GO-2026-6855"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"1.26.11"},{"introduced":"1.27.0-0"},{"fixed":"1.27.4"}],"type":"SEMVER"}],"versions":[],"fixed":["1.26.11","1.27.4"]}],"sourceAffected":[],"references":["https://go.dev/cl/862149","https://go.dev/issue/82574","https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","https://pkg.go.dev/vuln/GO-2026-6855"],"sources":[{"name":"CVE","id":"CVE-2026-97036","modified":"2026-11-11T03:13:16.347Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-97036"},{"name":"OSV","id":"GO-2026-6855","modified":"2026-11-11T03:15:15.677114364Z","url":"https://osv.dev/vulnerability/GO-2026-6855"}],"assessments":[],"cve":{"records":[{"id":"CVE-2026-97036","source":"Go","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-23T23:05:04.987Z","published":"2026-11-11T03:13:16.347Z","modified":"2026-11-11T03:13:16.347Z"}],"publishers":[{"name":"Go","role":"CNA","organizationId":"1bb62c36-49e3-4200-9d77-64a1400537cc","modified":"2026-11-11T03:13:16.347Z"}],"references":[{"url":"https://go.dev/cl/862149","tags":[],"source":"Go"},{"url":"https://go.dev/issue/82574","tags":[],"source":"Go"},{"url":"https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","tags":[],"source":"Go"},{"url":"https://pkg.go.dev/vuln/GO-2026-6855","tags":[],"source":"Go"}],"weaknesses":[],"applicability":[],"prioritization":[]},"products":[{"vendor":"Go toolchain","name":"cmd/go","platforms":["darwin"],"versions":[{"version":"0","status":"affected","lessThan":"1.26.11","versionType":"semver"},{"version":"1.27.0-0","status":"affected","lessThan":"1.27.4","versionType":"semver"}],"defaultStatus":"unaffected","cpes":[],"source":"Go","url":"https://www.cve.org/CVERecord?id=CVE-2026-97036"}],"remediation":[],"observedAt":"2026-11-11T06:55:49.275Z","kev":{"status":"not-listed","checkedAt":"2026-11-14T23:35:33.875Z"},"coverage":[{"source":"NVD","status":"refresh-failed","attemptedAt":"2026-11-11T07:25:35.966Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-11T07:25:35.149Z","attemptedAt":"2026-11-11T07:25:35.149Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-11T07:25:35.955Z","attemptedAt":"2026-11-11T07:25:35.955Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-11T07:25:35.967Z","attemptedAt":"2026-11-11T07:25:35.967Z"}],"evidence":[{"source":"GitHub Advisory Database","id":"GHSA-qxq7-88pj-2ph7","url":"https://github.com/advisories/GHSA-qxq7-88pj-2ph7","modified":"2026-11-11T06:32:47Z","checkedAt":"2026-11-11T07:25:35.149Z"},{"source":"ENISA EUVD","id":"EUVD-2026-123109","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-123109","modified":"Nov 11, 2026, 6:32:38 AM","checkedAt":"2026-11-11T07:25:35.955Z"}],"aiSummary":null}