CVE-2023-29405
published critical CVSS 3.1 · 9.8Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Go toolchain | — | cmd/go0 to < 1.19.10 · 1.20.0-0 to < 1.20.5 · Other versions: unaffected | Affected | Not stated | Go |
| Go toolchain | — | cmd/cgo0 to < 1.19.10 · 1.20.0-0 to < 1.20.5 · Other versions: unaffected | Affected | Not stated | Go |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2163 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2GOLANG1.19-2023-001 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-269 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | delve | Advisory build | 1.9.1-1.module_el8.8.0+3471+a62632a0 | ALSA-2023:3922 |
| Alpine Linux | edge | go | Fixed | 1.20.5-r0 | Package fix record |
| Oracle Linux | 8 | delvex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.9.1-1.0.1.module+el8.8.0+20964+30a27755 | ELSA-2023-3922 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | delvesrc | Advisory build | 1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2023:3922 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19x86_64 | Advisory build | 1.19.10-150000.1.34.1 | SUSE-SU-2023:2525-1 |
| AlmaLinux | 8 | go-toolset | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 8 | golang | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 8 | golang-bin | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 8 | golang-docs | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 8 | golang-misc | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 8 | golang-race | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 8 | golang-src | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 8 | golang-tests | Advisory build | 1.19.10-1.module_el8.8.0+3571+89db2ae0 | ALSA-2023:3922 |
| AlmaLinux | 9 | go-toolset | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux | 9 | golang | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux | 9 | golang-bin | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux | 9 | golang-docs | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux | 9 | golang-misc | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux | 9 | golang-race | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux | 9 | golang-src | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| AlmaLinux | 9 | golang-tests | Advisory build | 1.19.10-1.el9_2 | ALSA-2023:3923 |
| Alpine Linux | v3.18 | go | Fixed | 1.20.5-r0 | Package fix record |
| Alpine Linux | v3.19 | go | Fixed | 1.20.5-r0 | Package fix record |
| Alpine Linux | v3.20 | go | Fixed | 1.20.5-r0 | Package fix record |
| Alpine Linux | v3.21 | go | Fixed | 1.20.5-r0 | Package fix record |
| Alpine Linux | v3.22 | go | Fixed | 1.20.5-r0 | Package fix record |
| Alpine Linux | v3.23 | go | Fixed | 1.20.5-r0 | Package fix record |
| Alpine Linux | v3.24 | go | Fixed | 1.20.5-r0 | Package fix record |
| Oracle Linux | 8 | go-toolsetaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | go-toolsetx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golangaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golangx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-binaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-binx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-docsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-docsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-miscaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-miscx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-racex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-srcaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-srcx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-testsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 8 | golang-testsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.19.10-1.0.1.module+el8.8.0+21109+b7104c00 | ELSA-2023-3922 |
| Oracle Linux | 9 | go-toolsetaarch64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | go-toolsetx86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golangaarch64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golangx86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-binaarch64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-binx86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-docsaarch64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-docsx86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-miscaarch64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-miscx86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-racex86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-srcaarch64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-srcx86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-testsaarch64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Oracle Linux | 9 | golang-testsx86_64 | Advisory build | 0:1.19.10-1.0.1.el9_2 | ELSA-2023-3923 |
| Red Hat Enterprise Linux | RHEL-8 | delvex86_64 | Advisory build | 1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debuginfox86_64 | Advisory build | 1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debugsourcex86_64 | Advisory build | 1.9.1-1.module+el8.8.0+16778+5fbb74f5 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetaarch64 | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetppc64le | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsets390x | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetsrc | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetx86_64 | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golangaarch64 | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golangppc64le | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golangs390x | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golangsrc | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golangx86_64 | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binaarch64 | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binppc64le | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-bins390x | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binx86_64 | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-docsnoarch | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-miscnoarch | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-racex86_64 | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-srcnoarch | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-8 | golang-testsnoarch | Advisory build | 1.19.10-1.module+el8.8.0+19203+782922b7 | RHSA-2023:3922 |
| Red Hat Enterprise Linux | RHEL-9 | go-toolsetaarch64 | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | go-toolsetppc64le | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | go-toolsets390x | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | go-toolsetsrc | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | go-toolsetx86_64 | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golangaarch64 | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golangppc64le | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golangs390x | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golangsrc | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golangx86_64 | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-binaarch64 | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-binppc64le | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-bins390x | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-binx86_64 | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-docsnoarch | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-miscnoarch | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-racex86_64 | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-srcnoarch | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| Red Hat Enterprise Linux | RHEL-9 | golang-testsnoarch | Advisory build | 1.19.10-1.el9_2 | RHSA-2023:3923 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19-docx86_64 | Advisory build | 1.19.10-150000.1.34.1 | SUSE-SU-2023:2525-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Go toolchain | cmd/go | 0 to < 1.19.10 (affected · semver)1.20.0-0 to < 1.20.5 (affected · semver)Default: unaffected | Go · cna |
| Go toolchain | cmd/cgo | 0 to < 1.19.10 (affected · semver)1.20.0-0 to < 1.20.5 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
8- https://go.dev/cl/501224
- https://go.dev/issue/60306
- https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/
- https://pkg.go.dev/vuln/GO-2023-1842
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20241206-0003/
Provider assertions
3Go · cna
Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 434bddfb52c85270af7f4e3a715b84bbdd45cb1be604b9951f5e0aa2c2dcc801
- Ingested
- 23 Sep 2026, 08:07:56 UTC
- Source record
- Official CVE record