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 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.
02 / AFFECTED SOFTWARE
Affected packages
2 explicit affected versions
1 explicit affected versions
1 explicit affected versions
5 explicit affected versions
7 explicit affected versions
1 explicit affected versions
1 explicit affected versions
1 explicit affected versions
2 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
05 / REFERENCES
Further evidence
- https://github.com/golang/go/commit/2ddfc04d12da7028334ab4f8effbc3a78b92d9d2
- https://github.com/golang/go/commit/31d5b604ac0adb58aec4870ac1b974c08312fd49
- https://go.dev/cl/533215
- https://go.dev/issue/63211
- https://groups.google.com/g/golang-announce/c/XBa1oHDevAo
- https://pkg.go.dev/vuln/GO-2023-2095
- https://ubuntu.com/security/CVE-2023-39323
- https://ubuntu.com/security/notices/USN-6574-1
- https://ubuntu.com/security/notices/USN-7109-1
- https://ubuntu.com/security/notices/USN-7111-1
- https://www.cve.org/CVERecord?id=CVE-2023-39323