CVE-2023-39323
Arbitrary code execution during build via line directives in cmd/go
Summary
Arbitrary code execution during build via line directives in cmd/go
Original description
The description as published by the source.
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
Bitnami
golang
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.20.9"},{"introduced":"1.21.0"},{"fixed":"1.21.2"}]}]
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2023-39323 golang-1.15
References
- advisory security.gentoo.org
- advisory security.netapp.com
- advisory nvd.nist.gov
- advisory github.com
- web go.dev
- web go.dev
- web groups.google.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web pkg.go.dev
- web pkg.go.dev