CVE-2023-39323
Aliases:GO-2023-2095BIT-golang-2023-39323
Advisory lineage Upstream: 0 Downstream: 13
Modified
Published: 05 Oct 2023, 20:36
Last modified:12 Jun 2025, 15:15
Vulnerability Summary
Overall Risk (default)
medium
32/100 CVSS Score
8.1 HIGH
v3.1 (cve.org)
EPSS Score
0.06% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
05 Oct 2023, 20:36
Published
Vulnerability first disclosed
12 Jun 2025, 15:15
Last Modified
Vulnerability information updated
Description
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.
CVSS Metrics
- v3.1•HIGH•Score: 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.06%• Percentile: 19%
Affected Systems
- fedoraproject•fedora
37 | 38 | 39
- go toolchain•cmd/go
< 1.20.9 | ≥ 1.21.0-0, < 1.21.2
- golang•go
< 1.20.9 | ≥ 1.21.0, < 1.21.2
- Go•toolchain
≥ 1.21.0-0, < 1.21.2
References (9)
- https://go.dev/issue/63211
- https://go.dev/cl/533215
- https://groups.google.com/g/golang-announce/c/XBa1oHDevAo
- https://pkg.go.dev/vuln/GO-2023-2095
- https://security.netapp.com/advisory/ntap-20231020-0001/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSEGD2IWKNUO3DWY4KQGUQM5BISRWHQE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CLB4TW7KALB3EEQWNWCN7OUIWWVWWCG2/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XFOIBB4YFICHDM7IBOP7PWXW3FX4HLL2/
- https://security.gentoo.org/glsa/202311-09