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.
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | golang | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | go-toolset | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | golang | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | golang-bin | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | golang-docs | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | golang-misc | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | golang-race | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | golang-src | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | golang-tests | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | go-toolset | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | golang | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | golang-bin | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | golang-docs | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | golang-misc | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | golang-race | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | golang-src | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | golang-tests | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-97034
- https://bugzilla.redhat.com/show_bug.cgi?id=2571442
- https://www.cve.org/CVERecord?id=CVE-2026-97034
- https://nvd.nist.gov/vuln/detail/CVE-2026-97034
- https://go.dev/cl/862147
- https://go.dev/issue/82576
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6857