ZeroDay Brief
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 a "#cgo LDFLAGS" directive.

CVSS
8.8High
Chance of exploitation (EPSS)
0.71%
Published
Nov 11, 2026
In the news
Not yet
More from this vendor

What to do

A serious security flaw in Go Toolchain Cmd Go that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Fixed in: 1.26.11, 1.27.4

Affected versions
Go Toolchain Cmd Go
Before 1.26.11; 1.27.0-0 to before 1.27.4

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.

CWE-88

Affected products

Get alerts for these →

Timeline 16

Latest change: Nessus plugin 385941: RockyLinux 9 : golang (RLSA-2026:102586) (Nov 24, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Wed, Nov 11, 2026

  1. CVECVE-2026-97036 published (CVSS 8.8)CVE Program · 05:19 UTC

References 4

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”