ADVISORIES

Vulnerability

CVE-2023-39323

Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of arbitrary code when running "go build". The line directive requires the absolute path of the file in which the directive lives, which makes exploiting this issue significantly more complex.

56 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2-2023-2313

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

    Important Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39323CVE-2023-39325 Amazon Linux Updated 3 January 2024
  • ALAS2023-2023-394

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

    Important Known exploited CVE-2023-39323CVE-2023-39325CVE-2023-44487 Amazon Linux Updated 18 October 2023
  • ALAS2023-2023-420

    Amazon Linux 2023 - ALAS2023-2023-420: Important priority package update for ecs-service-connect-agent

    Important Known exploited CVE-2023-38546CVE-2023-39323CVE-2023-44487 Amazon Linux Updated 3 November 2023
  • ALPINE-CVE-2023-39323

    Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of…

    CVE-2023-39323 Alpine Updated 17 November 2026
  • ALPINE-EDGE-CVE-2023-39323
    CVE-2023-39323 Alpine Updated 18 November 2026
  • AZL-31107

    CVE-2023-39323 affecting package golang for versions less than 1.20.10-1

    CVE-2023-39323 Azure Linux Updated 21 April 2026
  • AZL-37358

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

    CVE-2023-39323 Azure Linux Updated 21 April 2026
  • AZL-37389

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

    CVE-2023-39323 Azure Linux Updated 21 April 2026
  • AZL-52845

    CVE-2023-39323 affecting package golang for versions less than 1.20.10-1

    CVE-2023-39323 Azure Linux Updated 21 April 2026
  • AZL-78984

    CVE-2023-39323 affecting package golang 1.25.7-1

    CVE-2023-39323 Azure Linux Updated 21 April 2026
  • AZL-98871

    CVE-2023-39323 affecting package golang 1.27.1-1

    CVE-2023-39323 Azure Linux Updated 16 September 2026
  • CGA-23m2-cfg2-9vmg
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-2pcr-h8xj-x8q4
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-472g-5rg6-jr83
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-48h5-3vvc-g6xv
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-4w3f-6v28-vp97
    CVE-2023-39323 Chainguard Updated 5 November 2026
  • CGA-63r7-5r2f-7vwr
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-8q3j-wgq3-h3g4
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-8r8p-5j96-97qh
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-8xm5-6ffw-grjh
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-cjmh-7w2f-53cg
    CVE-2023-39323 Chainguard Updated 5 November 2026
  • CGA-cx7r-8h8r-43jf
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-g4cp-7g6w-q2fq
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-h4g2-7f2v-92fq
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-jf37-xc8r-6w73
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-jjp9-7cv5-7ppm
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-jp79-7v43-786c
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-m2qx-54f7-47hh
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-pfw8-7rfv-m86h
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-qhpw-h34p-rr3f
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-qv44-6h4r-749q
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-v2mj-pg55-4rhg
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-v5gw-mxmq-h32w
    CVE-2023-39323 Chainguard Updated 5 November 2026
  • CGA-vvwq-632h-m934
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-w4m3-vh5h-293c
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-wmm9-p2g5-xj8h
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-wqrq-7wqx-jgjf
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-xc9v-h477-qcv7
    CVE-2023-39323 ChainguardWolfi Updated 5 November 2026
  • CGA-xp9j-pcwf-4pjh
    CVE-2023-39323 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2023-39323

    Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of…

    CVE-2023-39323 Debian Updated 26 October 2026
  • GO-2023-2095

    Arbitrary code execution during build via line directives in cmd/go

    CVE-2023-39323 Go Updated 4 February 2026
  • OESA-2023-1789

    golang security update

    High CVE-2023-39318CVE-2023-39319CVE-2023-39323CVE-2023-39325 openEuler Updated 18 August 2026
  • RHBA-2023:6928

    Red Hat Bug Fix Advisory: go-toolset:rhel8 bug fix and enhancement update

    CVE-2023-39318CVE-2023-39319CVE-2023-39321CVE-2023-39322 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2023-39323

    golang: cmd/go: line directives allows arbitrary execution during build

    Moderate CVE-2023-39323 Red Hat Updated 7 November 2026
  • SUSE-SU-2023:4017-1

    Security update for go1.21

    CVE-2023-39323 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:4018-1

    Security update for go1.20

    CVE-2023-39323 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:4469-1

    Security update for go1.21-openssl

    Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39320CVE-2023-39321 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:4472-1

    Security update for go1.20-openssl

    Known exploited CVE-2023-39323CVE-2023-39325CVE-2023-44487CVE-2023-45283 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-CVE-2023-39323

    Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of…

    Important CVE-2023-39323 SUSE Updated 31 August 2026
  • UBUNTU-CVE-2023-39323

    Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives, allowing blocked linker and compiler flags to be passed during compilation. This can result in unexpected execution of…

    CVE-2023-39323 Ubuntu Updated 4 February 2026
  • USN-6574-1

    Go vulnerabilities

    Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39323CVE-2023-39325 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
  • USN-7111-1

    golang-1.17 vulnerabilities

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24536 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2023:0360-1

    Security update for go1.21

    Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39320CVE-2023-39321 SUSE Updated 4 February 2026
  • openSUSE-SU-2024:13306-1

    go1.20-1.20.9-1.1 on GA media

    CVE-2023-39323 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13307-1

    go1.21-1.21.2-1.1 on GA media

    CVE-2023-39323 openSUSE Updated 4 February 2026

References