Vulnerability in Golang Go
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.019, 80.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Toolchain Cmd/go — versions 0, 1.21.0-0
- Fedoraproject Fedora — versions 37, 38, 39
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (11notes/docker-github-runner, 11notes/docker-paperless-ngx, ARPSyndicate/cve-scores, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/issue/63211 (Patch, Issue Tracking)
- go.dev/cl/533215 (Patch)
- groups.google.com/g/golang-announce/c/XBa1oHDevAo (Mailing List, Release Notes)
- pkg.go.dev/vuln/GO-2023-2095 (Vendor Advisory)
- security.netapp.com/advisory/ntap-20231020-0001/ (Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- security.gentoo.org/glsa/202311-09 (Third Party Advisory)