Affected versions
Ubuntu14.04:LTS/golang-1.10
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu16.04:LTS/golang-1.10
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu16.04:LTS/golang-1.6
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu18.04:LTS/golang-1.10
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu18.04:LTS/golang-1.8
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu18.04:LTS/golang-1.9
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/golang-1.13
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/golang-1.14
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/golang-1.18
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/golang-1.20
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/golang-1.21
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/golang-1.22
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.17
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.18
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.20
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.21
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.22
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.23
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.24
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.25
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/golang-1.26
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/golang-1.21
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/golang-1.22
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/golang-1.23
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/golang-1.24
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/golang-1.25
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/golang-1.26
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/golang-1.23
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/golang-1.24
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/golang-1.25
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/golang-1.26
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/golang-1.26
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/golang-1.27
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
- Affected versions
- *
- Fixed version
- Not reported
Description
On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library " in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.
Links
- https://github.com/golang/go/commit/0e2c832156565cf52d1f5ffb578039f747884d64
- https://github.com/golang/go/commit/0edfcc8731871d158162c4b73efded994fdcc3bc
- https://github.com/golang/go/issues/82574
- https://go.dev/cl/862149
- https://go.dev/issue/82574
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ
- https://pkg.go.dev/vuln/GO-2026-6855
- https://ubuntu.com/security/CVE-2026-97036
- https://www.cve.org/CVERecord?id=CVE-2026-97036

