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.
EPSS: 0.018 (75.7th percentile) — read the EPSS interpretation.
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.
Affected products
- Golang Go
- Go Toolchain Cmd/go — versions 0, 1.21.0-0
- Fedoraproject Fedora — versions 37, 38, 39
Public proof-of-concept exploits
References
- security@golang.org (Patch, Issue Tracking)
- security@golang.org (Patch)
- security@golang.org (Mailing List, Release Notes)
- security@golang.org (Vendor Advisory)
- security@golang.org (Third Party Advisory)
- security@golang.org (Mailing List, Third Party Advisory)
- security@golang.org (Mailing List, Third Party Advisory)
- security@golang.org (Mailing List, Third Party Advisory)
- security@golang.org (Third Party Advisory)
Frequently asked questions
- What is CVE-2023-39323?
- CVE-2023-39323 is a high-severity vulnerability in Golang Go. CVSS score: 8.1/10. Published 2023-10-05.
- How severe is CVE-2023-39323?
- High severity. CVSS v3 base score is 8.1 out of 10.
- Is CVE-2023-39323 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.