ADVISORIES

Vulnerability

CVE-2023-29404

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.

53 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-29404

    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-29404 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2023-29404
    CVE-2023-29404 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-27140

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

    CVE-2023-29404 Azure Linux Updated 21 April 2026
  • AZL-27150

    CVE-2023-29404 affecting package msft-golang for versions less than 1.19.10-1

    CVE-2023-29404 Azure Linux Updated 21 April 2026
  • AZL-37337

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

    CVE-2023-29404 Azure Linux Updated 21 April 2026
  • AZL-37510

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

    CVE-2023-29404 Azure Linux Updated 21 April 2026
  • AZL-47146

    CVE-2023-29404 affecting package golang for versions less than 1.22.7-2

    CVE-2023-29404 Azure Linux Updated 21 April 2026
  • CGA-2f2m-9gpv-4x7c
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-3cgf-8v2g-85rv
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-5pm8-fp89-47vf
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-5rr7-3rq4-m7q4
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-77w6-2v8w-gcfr
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-8c9w-x3rg-8x8p
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-8m44-9v23-2hrh
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-95h2-47qv-5777
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-f3wq-3prr-qx9w
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-fj79-jxxq-8r9g
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-h278-pwg3-3m2p
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-h9gh-f4vc-677g
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-jxhv-4mfr-f2m3
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-m8j4-wq33-qwm6
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-mwpp-c47f-fvfj
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-mxmq-3mgg-vrwg
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-mxw2-66rf-6fr9
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-pfm6-wv55-j3rg
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-q9qx-mf34-8vm6
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-qcrc-5g76-w75r
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-r2r8-gr85-2w5j
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-r9cw-gc37-84cw
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-rvx2-26w4-6cfq
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • CGA-wg76-33jf-wr63
    CVE-2023-29404 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2023-29404

    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-29404 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-1841

    Improper handling of non-optional LDFLAGS in go command with cgo in cmd/go

    CVE-2023-29404 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-29404

    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-29404 SUSE Updated 5 November 2026
  • UBUNTU-CVE-2023-29404

    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-29404 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