Vulnerability
CVE-2023-39323
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.
56 advisories report this vulnerability, across 12 ecosystems.
Advisories
-
ALAS2-2023-2313
Amazon Linux 2 2017.12 - ALAS2-2023-2313: important priority package update for golang
-
ALAS2023-2023-394
Amazon Linux 2023 - ALAS2023-2023-394: Important priority package update for golang
-
ALAS2023-2023-420
Amazon Linux 2023 - ALAS2023-2023-420: Important priority package update for ecs-service-connect-agent
-
ALPINE-CVE-2023-39323
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…
- ALPINE-EDGE-CVE-2023-39323
-
AZL-31107
CVE-2023-39323 affecting package golang for versions less than 1.20.10-1
-
AZL-37358
CVE-2023-39323 affecting package golang for versions less than 1.21.6-1
-
AZL-37389
CVE-2023-39323 affecting package golang for versions less than 1.21.6-1
-
AZL-52845
CVE-2023-39323 affecting package golang for versions less than 1.20.10-1
-
AZL-78984
CVE-2023-39323 affecting package golang 1.25.7-1
-
AZL-98871
CVE-2023-39323 affecting package golang 1.27.1-1
- CGA-23m2-cfg2-9vmg
- CGA-2pcr-h8xj-x8q4
- CGA-472g-5rg6-jr83
- CGA-48h5-3vvc-g6xv
- CGA-4w3f-6v28-vp97
- CGA-63r7-5r2f-7vwr
- CGA-8q3j-wgq3-h3g4
- CGA-8r8p-5j96-97qh
- CGA-8xm5-6ffw-grjh
- CGA-cjmh-7w2f-53cg
- CGA-cx7r-8h8r-43jf
- CGA-g4cp-7g6w-q2fq
- CGA-h4g2-7f2v-92fq
- CGA-jf37-xc8r-6w73
- CGA-jjp9-7cv5-7ppm
- CGA-jp79-7v43-786c
- CGA-m2qx-54f7-47hh
- CGA-pfw8-7rfv-m86h
- CGA-qhpw-h34p-rr3f
- CGA-qv44-6h4r-749q
- CGA-v2mj-pg55-4rhg
- CGA-v5gw-mxmq-h32w
- CGA-vvwq-632h-m934
- CGA-w4m3-vh5h-293c
- CGA-wmm9-p2g5-xj8h
- CGA-wqrq-7wqx-jgjf
- CGA-xc9v-h477-qcv7
- CGA-xp9j-pcwf-4pjh
-
DEBIAN-CVE-2023-39323
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…
-
GO-2023-2095
Arbitrary code execution during build via line directives in cmd/go
-
OESA-2023-1789
golang security update
-
RHBA-2023:6928
Red Hat Bug Fix Advisory: go-toolset:rhel8 bug fix and enhancement update
-
RHVEX-CVE-2023-39323
golang: cmd/go: line directives allows arbitrary execution during build
-
SUSE-SU-2023:4017-1
Security update for go1.21
-
SUSE-SU-2023:4018-1
Security update for go1.20
-
SUSE-SU-2023:4469-1
Security update for go1.21-openssl
-
SUSE-SU-2023:4472-1
Security update for go1.20-openssl
-
SUSEVEX-CVE-2023-39323
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…
-
UBUNTU-CVE-2023-39323
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…
-
USN-6574-1
Go vulnerabilities
-
USN-7109-1
golang-1.18 vulnerabilities
-
USN-7111-1
golang-1.17 vulnerabilities
-
openSUSE-SU-2023:0360-1
Security update for go1.21
-
openSUSE-SU-2024:13306-1
go1.20-1.20.9-1.1 on GA media
-
openSUSE-SU-2024:13307-1
go1.21-1.21.2-1.1 on GA media
References
- https://go.dev/cl/533215
- https://go.dev/issue/63211
- https://groups.google.com/g/golang-announce/c/XBa1oHDevAo
- https://lists.fedoraproject.org/archives/list/[email protected]/message/CLB4TW7KALB3EEQWNWCN7OUIWWVWWCG2/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KSEGD2IWKNUO3DWY4KQGUQM5BISRWHQE/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XFOIBB4YFICHDM7IBOP7PWXW3FX4HLL2/
- https://pkg.go.dev/vuln/GO-2023-2095
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20231020-0001/