ADVISORIES

Red Hat VEX

RHVEX-CVE-2023-39323

golang: cmd/go: line directives allows arbitrary execution during build

Moderate No fix available CVE-2023-39323

Details

A flaw was found in the golang cmd/go standard library. A line directive ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to pass during compilation. This can result in the unexpected execution of arbitrary code when running "go build". The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex.

Affected packages

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