<?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>Cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3agolanggo/</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>Thu, 19 Nov 2026 20:21:37 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3agolanggo/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>Go toolchain: Arbitrary code execution during package linking (CVE-2026-97038)</title><link>https://feed.craftedsignal.io/briefs/2026-11-go-toolchain-rce-cve-2026-97038/</link><pubDate>Thu, 19 Nov 2026 20:21:37 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-go-toolchain-rce-cve-2026-97038/</guid><description>The Go toolchain's cmd/go component is vulnerable to arbitrary code execution or the injection of arbitrary linker flags during the package linking phase when processing malicious .syso files or cgo linker inputs.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>The Go toolchain's cmd/go component is vulnerable to arbitrary code execution during the package linking phase. Malicious packages containing crafted &quot;.syso&quot; files or cgo linker inputs allow for the injection of arbitrary linker flags or the execution of arbitrary code at link time. The issue arises because the go command previously failed to validate the format of or check for embedded linker options in several types of inputs: &quot;.syso&quot; files, direct object or library inputs in &quot;#cgo LDFLAGS&quot;, and libraries in &quot;-L&quot; directories. These were passed to the external linker without verification.</p>
<h2 id="attack-chain">Attack Chain</h2>
<p>Attackers can leverage this vulnerability to perform several malicious actions:</p>
<ul>
<li>Executing GNU ld implicit linker scripts disguised as libraries or &quot;.syso&quot; files.</li>
<li>Loading malicious inputs via &quot;-l:&lt;filename&gt;&quot; or &quot;-l&quot; containing path separators.</li>
<li>Injecting unallowlisted linker flags via PE/COFF &quot;.drectve&quot; sections on Windows or Mach-O &quot;LC_LINKER_OPTION&quot; load commands on Darwin.</li>
<li>Invoking LTO plugins via GCC or LLVM LTO intermediate representation sections in ELF, PE/COFF, or Mach-O objects.</li>
</ul>
<p>The updated go command now verifies that &quot;.syso&quot; files, direct linker inputs, and libraries in &quot;-L&quot; directories are valid binary objects or archives that do not contain unallowlisted &quot;.drectve&quot; directives, &quot;LC_LINKER_OPTION&quot; load commands, or LTO IR sections, and it disallows &quot;-l:&lt;filename&gt;&quot; as well as &quot;:&quot;, &quot;=&quot;, or path separators in &quot;-l&quot; flags.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in arbitrary code execution at link time during the build process.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Users should upgrade the Go toolchain to version 1.26.11 or later for the 1.26.x branch, or version 1.27.4 or later for the 1.27.x branch, to incorporate the necessary validation logic for linker inputs.</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>supply-chain</category><category>rce</category></item><item><title>Golang Go: Arbitrary code execution and file writing in cgo build process (CVE-2026-97035)</title><link>https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-build-vulnerability-cve-2026-97035/</link><pubDate>Mon, 16 Nov 2026 23:46:38 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-build-vulnerability-cve-2026-97035/</guid><description>The Go toolchain's cmd/go component is vulnerable to arbitrary code execution and arbitrary file writes during build time when processing malicious packages using cgo, due to improper flag allowlisting.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>The Go toolchain's cmd/go component is affected by CVE-2026-97035, where the -g* wildcard in compiler and linker flag allowlists improperly matches certain Clang and GCC flags. Specifically, -gen-* (e.g., -gen-cdb-fragment-path) and -gnat* (e.g., -gnatO) flags in #cgo directives permit compilation database fragments or sidecar output files to be written to arbitrary directories. This desynchronizes flag argument parsing between the go command and the compiler driver, allowing subsequent arguments to be passed as unvalidated positional inputs to the linker, which can lead to unexpected code execution at build time.</p>
<h2 id="attack-chain">Attack Chain</h2>
<p>An attacker can construct a malicious Go package containing #cgo directives that use the disallowed -gen-* or -gnat* flags. When this package is built, the cmd/go tool processes these flags, potentially resulting in arbitrary file writes or the injection of unvalidated positional arguments to the linker.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an attacker to achieve arbitrary code execution during the package build process or write files to arbitrary directories on the build system.</p>
<h2 id="recommendation">Recommendation</h2>
<p>The Go project now disallows the use of -gen-* and -gnat* flags in #cgo compiler and linker flags. Users should upgrade to Go versions 1.26.11 or 1.27.4 or later.</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item><item><title>Go toolchain: Arbitrary command execution via cgo and GCC spec files (CVE-2026-97034)</title><link>https://feed.craftedsignal.io/briefs/2026-11-cgo-gcc-command-execution-cve-2026-97034/</link><pubDate>Mon, 16 Nov 2026 18:42:55 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-11-cgo-gcc-command-execution-cve-2026-97034/</guid><description>The Go toolchain's 'cmd/go' utility is vulnerable to arbitrary command execution at link time during cgo builds when processing untrusted GCC spec files.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files ('specs' or '<em>.spec'). When linking with '-fopenmp', '-fopenacc', or '-fsanitize=' in '#cgo LDFLAGS', GCC's built-in link spec evaluates '%:include(libgomp.spec)' or '%:include(libsanitizer.spec)' and searches for spec files in '-L' and sysroot directories (including subdirectories and multilib sibling directories such as '../lib64'), as well as the working directory when '-fopenmp' or '-fopenacc' is used or when '-fsanitize=' is combined with '-static' or '-static-lib</em>'.</p>
<h2 id="attack-chain">Attack Chain</h2>
<p>The vulnerability occurs during the link-time phase of a cgo-enabled Go build when specific GCC flags trigger the search for and evaluation of untrusted spec files located in directories reachable by the compiler.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in arbitrary command execution at link time during the build of a Go package that utilizes cgo.</p>
<h2 id="recommendation">Recommendation</h2>
<p>The Go toolchain includes remediations in versions 1.26.11 and 1.27.4, which reject potentially malicious directory paths and restrict '-fsanitize=' flag values.</p>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>cve</category><category>supply-chain</category></item><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>