PT-2023-3868 · Go+11 · Go+11
Juho Nurminen
·
Published
2023-05-19
·
Updated
2026-02-18
·
CVE-2023-29405
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Go (affected versions not specified)
Description
The issue is related to the Go programming language's cgo extension, which may execute arbitrary code at build time when using cgo. This can occur when running "go get" on a malicious module or when running any other command that builds untrusted code. The problem is triggered by linker flags specified via a "#cgo LDFLAGS" directive. Flags with embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler. Exploitation of the issue may allow a remote attacker to execute arbitrary code.
Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Special Elements Injection
Argument Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Debian
Go
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu