{"vuln_id":"CVE-2026-97036","aliases":[],"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.","published_at":"2026-11-11T05:19:57.713000Z","modified_at":"2026-11-17T05:18:38.710000Z","first_seen_at":"2026-11-21T19:15:48.026759Z","severity":"high","severity_source":"nvd","cvss_score":8.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-88"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00706,"epss_percentile":0.54312,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-97036"},"matched_alias":null,"items":[{"id":4831,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-97036: 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…","summary":"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\n\" 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.\n\nReferences:\nhttps://go.dev/cl/862149\nhttps://go.dev/issue/82574\nhttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM\nhttps://pkg.go.dev/vuln/GO-2026-6855","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97036","published_at":"2026-11-11T05:19:57.713000Z","updated_at":"2026-11-17T05:18:38.710000Z","fetched_at":"2026-11-21T19:15:31.480199Z","severity":"high","cvss_score":8.8,"epss":0.00706,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"apple","product":null,"vuln_id":"CVE-2026-97036","vuln_ids":["CVE-2026-97036"],"tags":["CWE-88"],"cluster_id":5140,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/4831","html":"https://vulnwatch.ve1ve2.com/item/4831"}}]}