CVE-2023-29404
Improper handling of non-optional LDFLAGS in go command with cgo in cmd/go
9.8
CRITICAL
CVSS 3.1
EPSS 0.08%
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.
How to fix CVE-2023-29404
To remediate CVE-2023-29404, upgrade the affected package to a fixed version below.
- —upgrade to 1.19.10 or later
- —no fix listed
- —no fix listed
- —upgrade to 1.19.10 or later
Is CVE-2023-29404 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 1.19.10, >= 1.20.0, < 1.20.5
- from 0
- from 0
- from 0, < 1.19.10, >= 1.20.0-0, < 1.20.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |