cve.bz

CVE-2023-29402 Code Injection

9.8 criticalEPSS 1.7%Fix available

Critical (9.8). EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.19.10, 1.20.5.

On this page
The 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).

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-01-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-29402 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-29402?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-29402?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-29402 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go toolchain cmd/gobefore 1.19.10
Go toolchain cmd/gofrom 1.20.0-0 before 1.20.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2023-1839Gotoolchain<1.19.10
>=1.20.0-0 <1.20.5
1.19.10, 1.20.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2023-29402
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2023-29402
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2023-29402
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2023-29402
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.20no fix listedUBUNTU-CVE-2023-29402
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.3UBUNTU-CVE-2023-29402 USN-7109-1
Ubuntu22.04:LTSgolang-1.171.17.13-3ubuntu1.2UBUNTU-CVE-2023-29402 USN-7061-1
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2023-29402 USN-7109-1
Ubuntu22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2023-29402
UbuntuPro:16.04:LTSgolang-1.181.18.1-1ubuntu1~16.04.6+esm1UBUNTU-CVE-2023-29402 USN-7109-1
UbuntuPro:16.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2023-29402
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16no fix listedUBUNTU-CVE-2023-29402
UbuntuPro:18.04:LTSgolang-1.181.18.1-1ubuntu1~18.04.4+esm1UBUNTU-CVE-2023-29402 USN-7109-1
1 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatdevtools:2023::el7go-toolset-1.19, go-toolset-1.19-build, go-toolset-1.19-golang and 8 more0:1.19.10-1.el7_9RHSA-2023:3920
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.9.1-1.module+el8.8.0+16778+5fbb74f5RHSA-2023:3922
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.19.10-1.module+el8.8.0+19203+782922b7RHSA-2023:3922
Red Hatenterprise_linux:9::appstreamgolang, go-toolset, golang-bin and 5 more0:1.19.10-1.el9_2RHSA-2023:3923
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5, Linux Enterprise Real Time 15 SP3go1.191.19.10-150000.1.34.1SUSE-SU-2023:2525-1
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5, Linux Enterprise Real Time 15 SP3go1.201.20.5-150000.1.14.1SUSE-SU-2023:2526-1
openSUSELeap 15.4, Leap 15.5go1.191.19.10-150000.1.34.1SUSE-SU-2023:2525-1
openSUSELeap 15.4, Leap 15.5go1.201.20.5-150000.1.14.1SUSE-SU-2023:2526-1
openSUSETumbleweedgo1.191.19.10-1.1openSUSE-SU-2024:12987-1
openSUSETumbleweedgo1.201.20.5-1.1openSUSE-SU-2024:12988-1
AlmaLinux8delve1.9.1-1.module_el8.8.0+3471+a62632a0ALSA-2023:3922
AlmaLinux8golang, go-toolset, golang-bin and 5 more1.19.10-1.module_el8.8.0+3571+89db2ae0ALSA-2023:3922
AlmaLinux9golang, go-toolset, golang-bin and 5 more1.19.10-1.el9_2ALSA-2023:3923
Rocky Linux9golang, go-toolset0:1.19.10-1.el9_2RLSA-2023:3923
Alpinev3.18, v3.19, v3.20 and 4 morego1.20.5-r0ALPINE-CVE-2023-29402
Azure Linux2golang1.20.7-1AZL-27111
Azure Linux2golang1.21.6-1AZL-37329 AZL-37353
Azure Linux2msft-golang1.19.10-1AZL-27122
Azure Linux3golang1.22.7-2AZL-47225

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is only applicable to customer use of the go compiler and not any pre-compiled golang binaries shipped by Red Hat.

ProductPackageStateAdvisory
Red Hat Ceph Storage 5.3rhceph/keepalived-rhel8:2.1.5-42Fixed 2024-06-26RHSA-2024:4119
Red Hat Ceph Storage 5.3rhceph/rhceph-5-dashboard-rhel8:5-87Fixed 2024-06-26RHSA-2024:4119
Red Hat Ceph Storage 5.3rhceph/rhceph-5-rhel8:5-519Fixed 2024-06-26RHSA-2024:4119
Red Hat Ceph Storage 5.3rhceph/rhceph-haproxy-rhel8:2.2.19-35Fixed 2024-06-26RHSA-2024:4119
Red Hat Ceph Storage 5.3rhceph/snmp-notifier-rhel8:1.2.1-69Fixed 2024-06-26RHSA-2024:4119
Red Hat Developer Toolsgo-toolset-1.19-0:1.19.10-1.el7_9Fixed 2023-06-29RHSA-2023:3920
Red Hat Developer Toolsgo-toolset-1.19-golang-0:1.19.10-1.el7_9Fixed 2023-06-29RHSA-2023:3920
Red Hat Enterprise Linux 8go-toolset:rhel8-8080020230627164522.6b4b45d8Fixed 2023-06-29RHSA-2023:3922
Red Hat Enterprise Linux 9golang-0:1.19.10-1.el9_2Fixed 2023-06-29RHSA-2023:3923
Red Hat Enterprise Linux 9go-toolset-0:1.19.10-1.el9_2Fixed 2023-06-29RHSA-2023:3923
Red Hat Ceph Storage 3golangWill not fix
Red Hat Storage 3golangWill not fix
Red Hat Storage 3go-toolset-7-golangWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-29402.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON