{"id":"CVE-2026-97037","aliases":["GO-2026-6854"],"title":"Linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo in cmd/go","titleSource":"Go","descriptionSource":"OSV","description":"Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via \"#cgo LDFLAGS\".\n\nSplit \"-Wl,\" flags that consume a following argument (such as \"-Wl,-rpath\", \"-Wl,--just-symbols\", and \"-Wl,-undefined\") previously accepted a bare second argument without a \"-Wl,\" prefix, which the compiler driver passes directly to the linker as a positional input file. Additionally, when using GNU ld.bfd, flags such as \"-framework\", \"-Wl,-framework\", \"-Wl,-undefined\", \"-Wl,--just-symbols\", \"-Wl,-R\", \"-Wl,-subsystem\", and (on non-Darwin platforms) \"-Wl,-sectcreate\" could cause ld.bfd to interpret their arguments as linker scripts if they named a regular file on disk.\n\nThe go command now requires a \"-Wl,\" prefix on the second token of split \"-Wl,\" flags (except \"-Wl,-R\"), verifies that these flags do not reference linker script files, and disallows bare \"-Wl,--warn-backrefs-exclude\".","severity":"unknown","score":null,"published":"2026-11-11T02:51:11.000Z","modified":"2026-11-11T03:15:14.799Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Go","name":"toolchain","sources":[{"name":"OSV · GO-2026-6854","url":"https://osv.dev/vulnerability/GO-2026-6854"}],"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/862150","https://go.dev/issue/82573","https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","https://pkg.go.dev/vuln/GO-2026-6854"],"sources":[{"name":"CVE","id":"CVE-2026-97037","modified":"2026-11-11T03:13:16.142Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-97037"},{"name":"OSV","id":"GO-2026-6854","modified":"2026-11-11T03:15:14.799312883Z","url":"https://osv.dev/vulnerability/GO-2026-6854"}],"assessments":[],"cve":{"records":[{"id":"CVE-2026-97037","source":"Go","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-23T23:05:04.987Z","published":"2026-11-11T03:13:16.142Z","modified":"2026-11-11T03:13:16.142Z"}],"publishers":[{"name":"Go","role":"CNA","organizationId":"1bb62c36-49e3-4200-9d77-64a1400537cc","modified":"2026-11-11T03:13:16.142Z"}],"references":[{"url":"https://go.dev/cl/862150","tags":[],"source":"Go"},{"url":"https://go.dev/issue/82573","tags":[],"source":"Go"},{"url":"https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","tags":[],"source":"Go"},{"url":"https://pkg.go.dev/vuln/GO-2026-6854","tags":[],"source":"Go"}],"weaknesses":[],"applicability":[],"prioritization":[]},"products":[{"vendor":"Go toolchain","name":"cmd/go","platforms":[],"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-97037"}],"remediation":[],"observedAt":"2026-11-11T06:56:04.259Z","kev":{"status":"not-listed","checkedAt":"2026-11-14T23:35:33.875Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-11T07:35:35.879Z","attemptedAt":"2026-11-11T07:35:35.879Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-11T07:35:36.476Z","attemptedAt":"2026-11-11T07:35:36.476Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-11T07:35:37.200Z","attemptedAt":"2026-11-11T07:35:37.200Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-11T07:35:35.883Z","attemptedAt":"2026-11-11T07:35:35.883Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-97037","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97037","modified":"2026-11-11T05:19:57.860","checkedAt":"2026-11-11T07:35:35.879Z"},{"source":"GitHub Advisory Database","id":"GHSA-f47v-97w8-qc5g","url":"https://github.com/advisories/GHSA-f47v-97w8-qc5g","modified":"2026-11-11T06:32:47Z","checkedAt":"2026-11-11T07:35:36.476Z"},{"source":"ENISA EUVD","id":"EUVD-2026-123108","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-123108","modified":"Nov 11, 2026, 6:32:38 AM","checkedAt":"2026-11-11T07:35:37.200Z"}],"aiSummary":null}