{"vuln_id":"CVE-2026-97037","aliases":[],"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\". Split \"-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. The 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\".","published_at":"2026-11-11T05:19:57.860000Z","modified_at":"2026-11-17T05:18:38.873000Z","first_seen_at":"2026-11-21T19:15:48.026761Z","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-94"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00686,"epss_percentile":0.53583,"nvd_status":"Awaiting Analysis","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-97037"},"matched_alias":null,"items":[{"id":4832,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-97037: 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 LDFLAG…","summary":"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\". Split \"-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. The 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\".\n\nReferences:\nhttps://go.dev/cl/862150\nhttps://go.dev/issue/82573\nhttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM\nhttps://pkg.go.dev/vuln/GO-2026-6854","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97037","published_at":"2026-11-11T05:19:57.860000Z","updated_at":"2026-11-17T05:18:38.873000Z","fetched_at":"2026-11-21T19:15:31.480200Z","severity":"high","cvss_score":8.8,"epss":0.00686,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-97037","vuln_ids":["CVE-2026-97037"],"tags":["CWE-94"],"cluster_id":5141,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/4832","html":"https://vulnwatch.ve1ve2.com/item/4832"}}]}