The go command may generate unexpected code at build time when using cgo. This may result in unexpected…
Historical advisory recorded 24 Oct 2026 22:17:10 UTC. Read the latest advisory.
nvd · CVE-2023-29402
PublishedThe go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains directories with newline characters in their names. Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using GOPATH-mode, i.e. GO111MODULE=off, may be affected).
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2023-29402
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-94
Original publisher date fields
published: 2023-06-08T21:15:16.770
lastModified: 2026-06-17T05:49:58.257
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