The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get"…
Historical advisory recorded 24 Oct 2026 22:17:10 UTC. Read the latest advisory.
nvd · CVE-2023-29405
PublishedThe 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2023-29405
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-74
Original publisher date fields
published: 2023-06-08T21:15:17.197
lastModified: 2026-06-17T05:49:58.753
2 source CPE criteria · context only
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON