# CVE-2026-97037: Linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo in cmd/go

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 53% of CVEs (2026-12-01)
- Published: 2026-11-11T02:51:11.000Z
- Modified: 2026-11-27T06:56:08.449Z
- Also known as: GO-2026-6854, BIT-GOLANG-2026-97037
- Related: RHSA-2026:101231, RHSA-2026:102586, RHSA-2026:102587, RHSA-2026:102592, RHSA-2026:99003, RHSA-2026:99004
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Go

## 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".

(As written by CVE List.)

## Affected

- cmd/go: before 1.26.11; from 1.27.0-0 before 1.27.4
- toolchain (Go): before 1.26.11; from 1.27.0-0 before 1.27.4
- golang (Bitnami): before 1.26.11; from 1.27.0-0 before 1.27.4

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/862150> (fix, web)
- <https://go.dev/issue/82573> (report, web)
- <https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM> (web)
- <https://pkg.go.dev/vuln/GO-2026-6854> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-97037> (web)

## Sources

- CVE List: [CVE-2026-97037](https://www.cve.org/CVERecord?id=CVE-2026-97037), CVE Terms of Use, modified 2026-11-17
- Go Vulnerability Database: [GO-2026-6854](https://pkg.go.dev/vuln/GO-2026-6854), CC-BY-4.0, modified 2026-11-27
- NVD: [CVE-2026-97037](https://nvd.nist.gov/vuln/detail/CVE-2026-97037), Public domain, modified 2026-11-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-97037](https://osv.dev/vulnerability/BIT-GOLANG-2026-97037), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-97037 · Whole record: https://cve.day/CVE-2026-97037.json · Rebuilt by cve.day 2026-11-27T07:27:26.274Z
