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.
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
| 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-97041
- https://bugzilla.redhat.com/show_bug.cgi?id=2571447
- https://www.cve.org/CVERecord?id=CVE-2026-97041
- https://nvd.nist.gov/vuln/detail/CVE-2026-97041
- https://go.dev/cl/862154
- https://go.dev/issue/82569
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6850