CVE-2023-29404
Go Command cgo Code Execution Vulnerability
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.
INFO
Published Date :
June 8, 2023, 9:15 p.m.
Last Modified :
Jan. 6, 2025, 8:15 p.m.
Source :
security@golang.org
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-29404
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-29404
vulnerability anywhere in the article.

-
tripwire.com
VERT Threat Alert: August 2024 Patch Tuesday Analysis
Today’s VERT Alert addresses Microsoft’s August 2024 Security Updates. VERT is actively working on coverage for these vulnerabilities and expects to ship ASPL-1119 as soon as coverage is completed.CVE ... Read more
The following table lists the changes that have been made to the
CVE-2023-29404
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jan. 06, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://go.dev/cl/501225 Added Reference https://go.dev/issue/60305 Added Reference https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ Added Reference https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/ Added Reference https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/ Added Reference https://pkg.go.dev/vuln/GO-2023-1841 Added Reference https://security.gentoo.org/glsa/202311-09 Added Reference https://security.netapp.com/advisory/ntap-20241115-0009/ -
CVE Modified by security@golang.org
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by security@golang.org
Nov. 25, 2023
Action Type Old Value New Value Added Reference Go Project https://security.gentoo.org/glsa/202311-09 [No types assigned] -
CVE Modified by security@golang.org
Nov. 07, 2023
Action Type Old Value New Value Removed CWE Go Project CWE-94 -
CVE Modified by security@golang.org
Aug. 11, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/ [No Types Assigned] -
Modified Analysis by nvd@nist.gov
Aug. 02, 2023
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/ No Types Assigned https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/ Mailing List Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* -
CVE Modified by security@golang.org
Jul. 21, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/ [No Types Assigned] -
Initial Analysis by nvd@nist.gov
Jun. 16, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://go.dev/cl/501225 No Types Assigned https://go.dev/cl/501225 Patch Changed Reference Type https://go.dev/issue/60305 No Types Assigned https://go.dev/issue/60305 Issue Tracking Changed Reference Type https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ No Types Assigned https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ Mailing List, Release Notes Changed Reference Type https://pkg.go.dev/vuln/GO-2023-1841 No Types Assigned https://pkg.go.dev/vuln/GO-2023-1841 Vendor Advisory Added CWE NIST CWE-94 Added CPE Configuration OR *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions up to (excluding) 1.19.10 *cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* versions from (including) 1.20.0 up to (excluding) 1.20.5
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-29404
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-29404
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
3.06 }} -8.25%
score
0.85501
percentile