CVE-2023-29405
Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go
9.8
CRITICAL
CVSS 3.1
EPSS 0.33%
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. Flags containing 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.
How to fix CVE-2023-29405
To remediate CVE-2023-29405, 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-29405 being exploited?
Low — EPSS is 0.3%, 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 |