ADVISORIES

Vulnerability

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

356 advisories report this vulnerability, across 14 ecosystems.

Advisories in Red Hat

  • RHSA-2026:101231

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-94440CVE-2026-97030CVE-2026-97033CVE-2026-97034 Red Hat Updated 26 November 2026
  • RHSA-2026:102586

    Red Hat Security Advisory: golang security, bug fix, and enhancement update

    CVE-2026-97033CVE-2026-97034CVE-2026-97035CVE-2026-97036 Red Hat Updated 26 November 2026
  • RHSA-2026:102587

    Red Hat Security Advisory: golang security, bug fix, and enhancement update

    CVE-2026-97033CVE-2026-97034CVE-2026-97035CVE-2026-97036 Red Hat Updated 26 November 2026
  • RHSA-2026:102592

    Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update

    CVE-2026-97033CVE-2026-97034CVE-2026-97035CVE-2026-97036 Red Hat Updated 26 November 2026
  • RHSA-2026:99003

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-97033CVE-2026-97034CVE-2026-97035CVE-2026-97037 Red Hat Updated 26 November 2026
  • RHSA-2026:99004

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2026-94440CVE-2026-97030CVE-2026-97033CVE-2026-97034 Red Hat Updated 26 November 2026
  • RHVEX-CVE-2026-97037

    cmd/go: golang: cmd/go: arbitrary code execution via malicious cgo linker flags

    Moderate CVE-2026-97037 Red Hat Updated 24 November 2026

References