Vulnerability
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. 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.
354 advisories report this vulnerability, across 12 ecosystems.
Advisories in Wolfi
- CGA-23rv-hvgf-8qpg
- CGA-25hv-34mr-3m8h
- CGA-2mqf-fr4m-6hg8
- CGA-2xp9-r8xx-9c5x
- CGA-466w-7r3q-vxm6
- CGA-4g2v-c4p4-hr39
- CGA-5ffp-7r82-8j2m
- CGA-5jx9-qmcj-5gxm
- CGA-6r53-jr47-gj6m
- CGA-7qrh-86c7-7j7h
- CGA-859r-h23j-qcvw
- CGA-8744-4gjr-346w
- CGA-886g-mhm3-vx37
- CGA-8qp8-vqgx-fw58
- CGA-99rx-9568-hjr5
- CGA-c4r7-m9pq-hfrq
- CGA-fv6g-pcvc-24hx
- CGA-h2x7-jrj7-98qg
- CGA-h46x-w5xq-54ph
- CGA-h4wj-c98w-jpw3
- CGA-m6pw-4fjr-2hqq
- CGA-mwc5-76m3-hcqp
- CGA-p6p9-6wr6-74m6
- CGA-q5fx-rvcv-w4vh
- CGA-qhc9-c5pv-rpjw
- CGA-r38x-848m-q6xp
- CGA-r5v8-c3v8-65v7
- CGA-r686-6cp2-mpp3
- CGA-rfvm-g3w6-xpp2
- CGA-rh3v-m7g4-xp7q
- CGA-v23p-857h-5rq5
- CGA-v2r7-x464-m564
- CGA-v468-379f-6x54
- CGA-vwm3-r27r-m74r
- CGA-w2c3-m8r6-pxf3
- CGA-wh2w-4w79-2g24
- CGA-x2pp-99rv-xc43
- CGA-xfv3-qf86-3p46
- CGA-xhfv-qj6g-842p
- CGA-xrw8-p9wg-qvpw