ADVISORIES

Vulnerability

CVE-2023-29405

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.

55 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2-2023-2163

    Amazon Linux 2 2017.12 - ALAS2-2023-2163: important priority package update for golang

    Important CVE-2022-41724CVE-2022-41725CVE-2023-24532CVE-2023-24536 Amazon Linux Updated 25 July 2023
  • ALAS2023-2023-269

    Amazon Linux 2023 - ALAS2023-2023-269: Important priority package update for golang

    Important CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 Amazon Linux Updated 26 July 2023
  • ALPINE-CVE-2023-29405

    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…

    CVE-2023-29405 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2023-29405
    CVE-2023-29405 Alpine Updated 18 November 2026
  • ALSA-2023:3922

    Critical: go-toolset:rhel8 security update

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 AlmaLinux Updated 29 October 2026
  • ALSA-2023:3923

    Critical: go-toolset and golang security update

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 AlmaLinux Updated 29 October 2026
  • AZL-27110

    CVE-2023-29405 affecting package golang for versions less than 1.20.7-1

    CVE-2023-29405 Azure Linux Updated 21 April 2026
  • AZL-27123

    CVE-2023-29405 affecting package msft-golang for versions less than 1.20.7-1

    CVE-2023-29405 Azure Linux Updated 21 April 2026
  • AZL-37347

    CVE-2023-29405 affecting package golang for versions less than 1.21.6-1

    CVE-2023-29405 Azure Linux Updated 21 April 2026
  • AZL-37499

    CVE-2023-29405 affecting package golang for versions less than 1.21.6-1

    CVE-2023-29405 Azure Linux Updated 21 April 2026
  • AZL-52827

    CVE-2023-29405 affecting package golang for versions less than 1.20.7-1

    CVE-2023-29405 Azure Linux Updated 21 April 2026
  • AZL-79012

    CVE-2023-29405 affecting package golang 1.25.7-1

    CVE-2023-29405 Azure Linux Updated 21 April 2026
  • AZL-98760

    CVE-2023-29405 affecting package golang 1.27.1-1

    CVE-2023-29405 Azure Linux Updated 16 September 2026
  • CGA-296g-pqvq-4hv3
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-2hc4-2vhc-ccx4
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-3m64-ghvv-qm9w
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-48rp-7jwq-hm82
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-4w5x-rh35-57vc
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-6c2j-xc3w-552m
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-8mfr-8v5g-96cq
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-952c-33m7-6828
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-f33c-fmjr-jgvg
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-g549-9x24-2jhf
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-gghw-jh7c-4hf6
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-h2rx-qfpm-rr23
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-h56f-xrj9-3mhr
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-hfp8-ff9p-7q3h
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-j3vj-f572-vp6m
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-p3vg-rgfc-wg3j
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-p5hp-qhpw-79hc
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-qcrm-g4wg-mv9m
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-qrfw-qm57-gwvq
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-qwf8-3h9x-9vj7
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-rc7g-h9m5-m9qg
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-rvqm-xf83-57c3
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-vr3q-c4pg-85r6
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • CGA-wv5f-px9q-w2mq
    CVE-2023-29405 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2023-29405

    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…

    CVE-2023-29405 Debian Updated 26 October 2026
  • ELSA-2023-3922

    ELSA-2023-3922: go-toolset:ol8 security update (CRITICAL)

    Critical CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 Oracle Linux Updated 4 July 2023
  • ELSA-2023-3923

    ELSA-2023-3923: go-toolset and golang security update (CRITICAL)

    Critical CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 Oracle Linux Updated 7 July 2023
  • GO-2023-1842

    Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go

    CVE-2023-29405 Go Updated 4 February 2026
  • OESA-2023-1386

    golang security update

    Critical CVE-2023-29402CVE-2023-29404CVE-2023-29405 openEuler Updated 18 August 2026
  • OESA-2023-1499

    golang security update

    Critical CVE-2023-29404CVE-2023-29405CVE-2023-29406 openEuler Updated 18 August 2026
  • RHSA-2023:3920

    Red Hat Security Advisory: go-toolset-1.19 and go-toolset-1.19-golang security update

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 Red Hat Updated 13 November 2026
  • RHSA-2023:3922

    Red Hat Security Advisory: go-toolset:rhel8 security update

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 Red Hat Updated 13 November 2026
  • RHSA-2023:3923

    Red Hat Security Advisory: go-toolset and golang security update

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 Red Hat Updated 13 November 2026
  • RLSA-2023:3923

    Critical: go-toolset and golang security update

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2023:2525-1

    Security update for go1.19

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:2526-1

    Security update for go1.20

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-CVE-2023-29405

    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…

    Critical CVE-2023-29405 SUSE Updated 16 October 2026
  • UBUNTU-CVE-2023-29405

    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…

    CVE-2023-29405 Ubuntu Updated 20 May 2026
  • USN-7061-1

    golang-1.17 vulnerabilities

    CVE-2023-24531CVE-2023-24538CVE-2023-29402CVE-2023-29403 Ubuntu Updated 27 April 2026
  • USN-7109-1

    golang-1.18 vulnerabilities

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24531 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2024:12987-1

    go1.19-1.19.10-1.1 on GA media

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:12988-1

    go1.20-1.20.5-1.1 on GA media

    CVE-2023-29402CVE-2023-29403CVE-2023-29404CVE-2023-29405 openSUSE Updated 4 February 2026

References