ADVISORIES

Ubuntu CVE Tracker

UBUNTU-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
Ubuntu:Pro:16.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1~16.04.6+esm1 (fixed in 1.18.1-1ubuntu1~16.04.6+esm1)
Ubuntu:Pro:18.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1~18.04.4+esm1 (fixed in 1.18.1-1ubuntu1~18.04.4+esm1)
Ubuntu:20.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1~20.04.3 (fixed in 1.18.1-1ubuntu1~20.04.3)
Ubuntu:20.04:LTSgolang-1.20
All versions before 1.20.3-1ubuntu0.1~20.04.1 (fixed in 1.20.3-1ubuntu0.1~20.04.1)
Ubuntu:20.04:LTSgolang-1.21
All versions before 1.21.1-1~ubuntu20.04.2 (fixed in 1.21.1-1~ubuntu20.04.2)
Ubuntu:22.04:LTSgolang-1.17
All versions before 1.17.13-3ubuntu1.3 (fixed in 1.17.13-3ubuntu1.3)
Ubuntu:22.04:LTSgolang-1.18
All versions before 1.18.1-1ubuntu1.2 (fixed in 1.18.1-1ubuntu1.2)
Ubuntu:22.04:LTSgolang-1.20
All versions before 1.20.3-1ubuntu0.1~22.04.1 (fixed in 1.20.3-1ubuntu0.1~22.04.1)
Ubuntu:22.04:LTSgolang-1.21
All versions before 1.21.1-1~ubuntu22.04.2 (fixed in 1.21.1-1~ubuntu22.04.2)

References