ADVISORIES

Alpine Security Database

ALPINE-CVE-2023-39323

Details

Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in 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
Alpine:v3.18go
All versions before 1.20.9-r0 (fixed in 1.20.9-r0)
Alpine:v3.19go
From 1.21.0 before 1.21.2-r0 (fixed in 1.21.2-r0)
Alpine:v3.20go
From 1.21.0 before 1.21.2-r0 (fixed in 1.21.2-r0)
Alpine:v3.21go
From 1.21.0 before 1.21.2-r0 (fixed in 1.21.2-r0)
Alpine:v3.22go
From 1.21.0 before 1.21.2-r0 (fixed in 1.21.2-r0)
Alpine:v3.23go
From 1.21.0 before 1.21.2-r0 (fixed in 1.21.2-r0)
Alpine:v3.24go
From 1.21.0 before 1.21.2-r0 (fixed in 1.21.2-r0)

References