ADVISORIES

Red Hat VEX

RHVEX-CVE-2026-97034

cmd/go: golang: cmd/go: arbitrary command execution via untrusted GCC spec files

This advisory was withdrawn on 24 November 2026.

Moderate No fix available CVE-2026-97034

Details

A flaw was found in cmd/go. This flaw allows an attacker to achieve arbitrary command execution when a developer or automated system builds an untrusted Go package that uses cgo (Go's C language integration). When compiling with the GCC (GNU Compiler Collection) compiler, specific build flags cause the linker to search for and evaluate configuration spec files from untrusted directories. An attacker can supply a specially crafted package containing a malicious spec file, resulting in command execution on the host machine during the build process.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:10golang
All versions, no fix yet
Red Hat:enterprise_linux:8go-toolset
All versions, no fix yet
Red Hat:enterprise_linux:8golang
All versions, no fix yet
Red Hat:enterprise_linux:8golang-bin
All versions, no fix yet
Red Hat:enterprise_linux:8golang-docs
All versions, no fix yet
Red Hat:enterprise_linux:8golang-misc
All versions, no fix yet
Red Hat:enterprise_linux:8golang-race
All versions, no fix yet
Red Hat:enterprise_linux:8golang-src
All versions, no fix yet
Red Hat:enterprise_linux:8golang-tests
All versions, no fix yet
Red Hat:enterprise_linux:9go-toolset
All versions, no fix yet
Red Hat:enterprise_linux:9golang
All versions, no fix yet
Red Hat:enterprise_linux:9golang-bin
All versions, no fix yet
Red Hat:enterprise_linux:9golang-docs
All versions, no fix yet
Red Hat:enterprise_linux:9golang-misc
All versions, no fix yet
Red Hat:enterprise_linux:9golang-race
All versions, no fix yet
Red Hat:enterprise_linux:9golang-src
All versions, no fix yet
Red Hat:enterprise_linux:9golang-tests
All versions, no fix yet

References