Vulnerabilities · 2023 · Golang
CVE-2023-39323
Golang Go vulnerability
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 products
Go, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Golang Go runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- pkg.go.dev/vuln/GO-2023-2095 · Vendor Advisory
- go.dev/cl/533215 · Patch
- go.dev/issue/63211 · Patch
- lists.fedoraproject.org/archives/list/[email protected]/message/CLB · Third Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/KSE · Third Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/XFO · Third Party Advisory
- security.gentoo.org/glsa/202311-09 · Third Party Advisory
- security.netapp.com/advisory/ntap-20231020-0001/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2023-39323
- cve.org/CVERecord?id=CVE-2023-39323
More vulnerabilities in Golang products
CVE-2026-42506CVE-2026-42502CVE-2026-27136CVE-2026-25681CVE-2026-25680CVE-2025-68121CVE-2025-68119CVE-2025-61732All 172
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.