{"description":"Trending threats, MITRE ATT\u0026CK coverage, and detection metadata. Fed continuously.","favicon":"https://feed.craftedsignal.io/favicon-32x32.png","feed_url":"https://feed.craftedsignal.io/products/cmd/go/feed.json","home_page_url":"https://feed.craftedsignal.io/","icon":"https://feed.craftedsignal.io/apple-touch-icon.png","items":[{"_cs_actors":[],"_cs_cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"_cs_cves":[{"cvss":8.8,"id":"CVE-2026-97038"}],"_cs_exploited":false,"_cs_has_poc":false,"_cs_poc_references":[],"_cs_products":["cmd/go"],"_cs_severities":["high"],"_cs_tags":["supply-chain","rce"],"_cs_type":"advisory","_cs_vendors":["Go toolchain"],"content_html":"\u003ch2 id=\"overview\"\u003eOverview\u003c/h2\u003e\n\u003cp\u003eThe Go toolchain's cmd/go component is vulnerable to arbitrary code execution during the package linking phase. Malicious packages containing crafted \u0026quot;.syso\u0026quot; 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: \u0026quot;.syso\u0026quot; files, direct object or library inputs in \u0026quot;#cgo LDFLAGS\u0026quot;, and libraries in \u0026quot;-L\u0026quot; directories. These were passed to the external linker without verification.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003cp\u003eAttackers can leverage this vulnerability to perform several malicious actions:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eExecuting GNU ld implicit linker scripts disguised as libraries or \u0026quot;.syso\u0026quot; files.\u003c/li\u003e\n\u003cli\u003eLoading malicious inputs via \u0026quot;-l:\u0026lt;filename\u0026gt;\u0026quot; or \u0026quot;-l\u0026quot; containing path separators.\u003c/li\u003e\n\u003cli\u003eInjecting unallowlisted linker flags via PE/COFF \u0026quot;.drectve\u0026quot; sections on Windows or Mach-O \u0026quot;LC_LINKER_OPTION\u0026quot; load commands on Darwin.\u003c/li\u003e\n\u003cli\u003eInvoking LTO plugins via GCC or LLVM LTO intermediate representation sections in ELF, PE/COFF, or Mach-O objects.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThe updated go command now verifies that \u0026quot;.syso\u0026quot; files, direct linker inputs, and libraries in \u0026quot;-L\u0026quot; directories are valid binary objects or archives that do not contain unallowlisted \u0026quot;.drectve\u0026quot; directives, \u0026quot;LC_LINKER_OPTION\u0026quot; load commands, or LTO IR sections, and it disallows \u0026quot;-l:\u0026lt;filename\u0026gt;\u0026quot; as well as \u0026quot;:\u0026quot;, \u0026quot;=\u0026quot;, or path separators in \u0026quot;-l\u0026quot; flags.\u003c/p\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eSuccessful exploitation results in arbitrary code execution at link time during the build process.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cp\u003eUsers 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.\u003c/p\u003e\n","date_modified":"2026-11-19T20:21:37Z","date_published":"2026-11-19T20:21:37Z","id":"https://feed.craftedsignal.io/briefs/2026-11-go-toolchain-rce-cve-2026-97038/","summary":"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.","title":"Go toolchain: Arbitrary code execution during package linking (CVE-2026-97038)","url":"https://feed.craftedsignal.io/briefs/2026-11-go-toolchain-rce-cve-2026-97038/"},{"_cs_actors":[],"_cs_cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"_cs_cves":[{"cvss":8.8,"id":"CVE-2026-97035"}],"_cs_exploited":false,"_cs_has_poc":false,"_cs_poc_references":[],"_cs_products":["cmd/go"],"_cs_severities":["high"],"_cs_tags":[],"_cs_type":"advisory","_cs_vendors":["Go toolchain"],"content_html":"\u003ch2 id=\"overview\"\u003eOverview\u003c/h2\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003cp\u003eAn 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.\u003c/p\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eSuccessful exploitation allows an attacker to achieve arbitrary code execution during the package build process or write files to arbitrary directories on the build system.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n","date_modified":"2026-11-16T23:46:38Z","date_published":"2026-11-16T23:46:38Z","id":"https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-build-vulnerability-cve-2026-97035/","summary":"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.","title":"Golang Go: Arbitrary code execution and file writing in cgo build process (CVE-2026-97035)","url":"https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-build-vulnerability-cve-2026-97035/"},{"_cs_actors":[],"_cs_cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"_cs_cves":[{"cvss":8.8,"id":"CVE-2026-97034"}],"_cs_exploited":false,"_cs_has_poc":false,"_cs_poc_references":[],"_cs_products":["cmd/go"],"_cs_severities":["high"],"_cs_tags":["cve","supply-chain"],"_cs_type":"advisory","_cs_vendors":["Go toolchain"],"content_html":"\u003ch2 id=\"overview\"\u003eOverview\u003c/h2\u003e\n\u003cp\u003eWhen using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files ('specs' or '\u003cem\u003e.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\u003c/em\u003e'.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eSuccessful exploitation results in arbitrary command execution at link time during the build of a Go package that utilizes cgo.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cp\u003eThe Go toolchain includes remediations in versions 1.26.11 and 1.27.4, which reject potentially malicious directory paths and restrict '-fsanitize=' flag values.\u003c/p\u003e\n","date_modified":"2026-11-16T18:42:55Z","date_published":"2026-11-16T18:42:55Z","id":"https://feed.craftedsignal.io/briefs/2026-11-cgo-gcc-command-execution-cve-2026-97034/","summary":"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.","title":"Go toolchain: Arbitrary command execution via cgo and GCC spec files (CVE-2026-97034)","url":"https://feed.craftedsignal.io/briefs/2026-11-cgo-gcc-command-execution-cve-2026-97034/"},{"_cs_actors":[],"_cs_cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"_cs_cves":[{"cvss":8.8,"id":"CVE-2026-97037"}],"_cs_exploited":false,"_cs_has_poc":false,"_cs_poc_references":[],"_cs_products":["cmd/go"],"_cs_severities":["high"],"_cs_tags":["cgo","compiler","linker"],"_cs_type":"advisory","_cs_vendors":["Go toolchain"],"content_html":"\u003ch2 id=\"overview\"\u003eOverview\u003c/h2\u003e\n\u003cp\u003eCVE-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 \u0026quot;#cgo LDFLAGS\u0026quot;.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDuring the build process, the go command processes \u0026quot;#cgo LDFLAGS\u0026quot;.\u003c/li\u003e\n\u003cli\u003eVulnerable versions of the go command previously accepted bare second arguments for split \u0026quot;-Wl,\u0026quot; flags without a \u0026quot;-Wl,\u0026quot; prefix. This allowed the compiler driver to pass these arguments directly to the linker as positional input files.\u003c/li\u003e\n\u003cli\u003eWhen using GNU ld.bfd, specific flags (such as \u0026quot;-framework\u0026quot;, \u0026quot;-Wl,-framework\u0026quot;, \u0026quot;-Wl,-undefined\u0026quot;, \u0026quot;-Wl,--just-symbols\u0026quot;, \u0026quot;-Wl,-R\u0026quot;, \u0026quot;-Wl,-subsystem\u0026quot;, and on non-Darwin platforms \u0026quot;-Wl,-sectcreate\u0026quot;) could cause the linker to interpret their arguments as linker scripts if the arguments pointed to existing files on disk.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eSuccessful exploitation allows for arbitrary code execution during the package build process.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cp\u003eThe go command has been updated to mitigate this vulnerability by requiring a \u0026quot;-Wl,\u0026quot; prefix on the second token of split \u0026quot;-Wl,\u0026quot; flags (except \u0026quot;-Wl,-R\u0026quot;), verifying that flags do not reference linker script files, and disallowing bare \u0026quot;-Wl,--warn-backrefs-exclude\u0026quot;. Users should upgrade to version 1.26.11 or 1.27.4 or later to address these issues.\u003c/p\u003e\n","date_modified":"2026-11-16T16:36:52Z","date_published":"2026-11-16T16:36:52Z","id":"https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-linker-vulnerability-cve-2026-97037/","summary":"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.","title":"Golang Go: Arbitrary code execution during cgo linking (CVE-2026-97037)","url":"https://feed.craftedsignal.io/briefs/2026-11-golang-go-cgo-linker-vulnerability-cve-2026-97037/"}],"language":"en","title":"CraftedSignal Threat Feed - Cmd/Go","version":"https://jsonfeed.org/version/1.1"}