← Back to browse · API

CVE-2023-29404

Severity
CRITICAL
CVSS
9.8
EPSS
0.01837
Risk score
39.84
CISA KEV
No
PoC
No
Published
2023-06-08
Modified
2025-01-06
First seen
2026-08-07
Aliases
EUVD-2023-32975, GHSA-888H-RM2R-VRC7
Products
Go toolchain:cmd/go 0 <1.19.10, Go toolchain:cmd/go 1.20.0-0 <1.20.5
Sources
euvd EUVD-2023-32975

Description

The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. The arguments for a number of flags which are non-optional are incorrectly considered optional, allowing disallowed flags to be smuggled through the LDFLAGS sanitization. This affects usage of both the gc and gccgo compilers.

References