ADVISORIES

Vulnerability

CVE-2023-29402

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).

52 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2-2023-2131

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

    Important CVE-2023-29402 Amazon Linux Updated 19 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-29402

    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…

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

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

    CVE-2023-29402 Azure Linux Updated 21 April 2026
  • AZL-27122

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

    CVE-2023-29402 Azure Linux Updated 21 April 2026
  • AZL-37329

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

    CVE-2023-29402 Azure Linux Updated 21 April 2026
  • AZL-37353

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

    CVE-2023-29402 Azure Linux Updated 21 April 2026
  • AZL-47225

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

    CVE-2023-29402 Azure Linux Updated 21 April 2026
  • CGA-2xpf-jqvg-rg2h
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-9xg3-265f-2pw7
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-cq4f-pm63-w7gc
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-cxx8-mv8c-mgr8
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-fmjc-42vm-g8cw
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-fwmv-33cg-7494
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-gf4x-vpr8-35cr
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-h662-36jr-xqpj
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-m64f-grh9-786p
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-mhqx-2q38-f7c8
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-p625-9qwp-c4qw
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-pfm4-jh99-hx3g
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-q69g-qm46-85w3
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-qq46-c96h-4925
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-r92f-w86r-2wmw
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-r95q-cfj7-38xm
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-rw9p-j8fc-fjrc
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-v2r5-ccr4-f42w
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-v68v-624q-vm6j
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-w42x-qmw7-9gp4
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-wr4r-4rvw-jcp3
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-wwfg-f4h5-8g94
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-x5h8-hcw5-fr3c
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • CGA-xx92-fxq6-wh75
    CVE-2023-29402 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2023-29402

    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…

    CVE-2023-29402 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-1839

    Code injection via go command with cgo in cmd/go

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

    golang security update

    Critical CVE-2023-29402CVE-2023-29404CVE-2023-29405 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-29402

    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…

    Critical CVE-2023-29402 SUSE Updated 12 October 2026
  • UBUNTU-CVE-2023-29402

    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…

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