<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cgo - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cgo/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 16 Nov 2026 16:36:52 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cgo/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Golang Go: Arbitrary code execution during cgo linking (CVE-2026-97037)</title><link>https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-linker-vulnerability-cve-2026-97037/</link><pubDate>Mon, 16 Nov 2026 16:36:52 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-linker-vulnerability-cve-2026-97037/</guid><description>The Go toolchain (cmd/go) is vulnerable to arbitrary code execution during the package build process when processing malicious cgo LDFLAGS, affecting versions prior to 1.26.11 and 1.27.4.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>CVE-2026-97037 is an arbitrary code execution vulnerability in the Go toolchain (cmd/go) that occurs at link time. Malicious packages utilizing cgo can pass linker script files to the host linker via &quot;#cgo LDFLAGS&quot;.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ul>
<li>During the build process, the go command processes &quot;#cgo LDFLAGS&quot;.</li>
<li>Vulnerable versions of the go command previously accepted bare second arguments for split &quot;-Wl,&quot; flags without a &quot;-Wl,&quot; prefix. This allowed the compiler driver to pass these arguments directly to the linker as positional input files.</li>
<li>When using GNU ld.bfd, specific flags (such as &quot;-framework&quot;, &quot;-Wl,-framework&quot;, &quot;-Wl,-undefined&quot;, &quot;-Wl,--just-symbols&quot;, &quot;-Wl,-R&quot;, &quot;-Wl,-subsystem&quot;, and on non-Darwin platforms &quot;-Wl,-sectcreate&quot;) could cause the linker to interpret their arguments as linker scripts if the arguments pointed to existing files on disk.</li>
</ul>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for arbitrary code execution during the package build process.</p>
<h2 id="recommendation">Recommendation</h2>
<p>The go command has been updated to mitigate this vulnerability by requiring a &quot;-Wl,&quot; prefix on the second token of split &quot;-Wl,&quot; flags (except &quot;-Wl,-R&quot;), verifying that flags do not reference linker script files, and disallowing bare &quot;-Wl,--warn-backrefs-exclude&quot;. Users should upgrade to version 1.26.11 or 1.27.4 or later to address these issues.</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>cgo</category><category>compiler</category><category>linker</category></item></channel></rss>