ADVISORIES

Red Hat VEX

RHVEX-CVE-2026-27140

cmd/go: golang: Go (golang) and cmd/go: Arbitrary Code Execution via malicious SWIG file names

Important No fix available CVE-2026-27140

Details

A flaw was found in the Go programming language (golang) and its command-line tool (cmd/go). A remote attacker could exploit this during the build process by crafting malicious SWIG (Simplified Wrapper and Interface Generator) file names that contain "cgo" and specific payloads. This could lead to code smuggling and arbitrary code execution, bypassing trust mechanisms and allowing the attacker to run unauthorized code.

Affected packages

EcosystemPackageAffected versions
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

References