ADVISORIES

Red Hat VEX

RHVEX-CVE-2026-97041

cmd/compile: cmd/link: golang: golang: Arbitrary code execution via external linker flag injection

This advisory was withdrawn on 24 November 2026.

Moderate No fix available CVE-2026-97041

Details

A flaw was found in the Go compiler and linker. This vulnerability allows an attacker to achieve arbitrary code execution on systems building Go software by injecting unauthorized flags into the external linker. The issue occurs on Executable and Linkable Format (ELF) platforms because the compiler and linker fail to properly validate special compiler directives embedded within Go source files. A remote attacker can exploit this flaw by tricking a user or automated pipeline into compiling a malicious Go package, leading to the compromise of the build host.

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