CVE & CISA-KEV Catalog

CVE-2023-39323

HIGHEPSS 75th pctl
8.1
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
delve-0:1.20.2Red Hat / RHEL
Fixed in:1.module+el8.9.0+18926+5193682d.x86_64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+18926+5193682d.src::go-toolset:rhel8RHBA-2023:6928
delve-0:1.20.2Rocky
Fixed in:1.module+el8.9.0+18926+5193682d.x86_64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+18926+5193682d.src::go-toolset:rhel8RHBA-2023:6928
delve-debuginfo-0:1.20.2Rocky
Fixed in:1.module+el8.9.0+18926+5193682d.x86_64::go-toolset:rhel8RHBA-2023:6928
delve-debuginfo-0:1.20.2Red Hat / RHEL
Fixed in:1.module+el8.9.0+18926+5193682d.x86_64::go-toolset:rhel8RHBA-2023:6928
delve-debugsource-0:1.20.2Red Hat / RHEL
Fixed in:1.module+el8.9.0+18926+5193682d.x86_64::go-toolset:rhel8RHBA-2023:6928
delve-debugsource-0:1.20.2Rocky
Fixed in:1.module+el8.9.0+18926+5193682d.x86_64::go-toolset:rhel8RHBA-2023:6928
go-toolset-0:1.20.10Rocky
Fixed in:1.module+el8.9.0+20382+04f7fe80.s390x::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.x86_64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.aarch64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.src::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.ppc64le::go-toolset:rhel8RHBA-2023:6928
go-toolset-0:1.20.10Red Hat / RHEL
Fixed in:1.module+el8.9.0+20382+04f7fe80.aarch64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.src::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.ppc64le::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.s390x::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.x86_64::go-toolset:rhel8RHBA-2023:6928
golang-0:1.20.10Red Hat / RHEL
Fixed in:1.module+el8.9.0+20382+04f7fe80.s390x::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.x86_64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.aarch64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.src::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.ppc64le::go-toolset:rhel8RHBA-2023:6928
golang-0:1.20.10Rocky
Fixed in:1.module+el8.9.0+20382+04f7fe80.s390x::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.x86_64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.aarch64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.ppc64le::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.src::go-toolset:rhel8RHBA-2023:6928
golang-bin-0:1.20.10Red Hat / RHEL
Fixed in:1.module+el8.9.0+20382+04f7fe80.x86_64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.aarch64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.ppc64le::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.s390x::go-toolset:rhel8RHBA-2023:6928
golang-bin-0:1.20.10Rocky
Fixed in:1.module+el8.9.0+20382+04f7fe80.s390x::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.ppc64le::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.aarch64::go-toolset:rhel8RHBA-2023:6928
Fixed in:1.module+el8.9.0+20382+04f7fe80.x86_64::go-toolset:rhel8RHBA-2023:6928
golang-docs-0:1.20.10Rocky
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
golang-docs-0:1.20.10Red Hat / RHEL
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
golang-misc-0:1.20.10Red Hat / RHEL
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
golang-misc-0:1.20.10Rocky
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
golang-src-0:1.20.10Rocky
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
golang-src-0:1.20.10Red Hat / RHEL
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
golang-tests-0:1.20.10Rocky
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
golang-tests-0:1.20.10Red Hat / RHEL
Fixed in:1.module+el8.9.0+20382+04f7fe80.noarch::go-toolset:rhel8RHBA-2023:6928
rhel8/goRocky
Fixed in:toolset@sha256:cb8b8324d59b195dd02c71e5368d2022d6eef4d34d1a4bc3a6386656f5ae172a_arm64RHEA-2023:7311
Fixed in:toolset@sha256:c5e43b8090e6ed26c86143a4d7e6ff8fb8556485293f1343c1d7522f7e4c01c5_amd64RHEA-2023:7311
Fixed in:toolset@sha256:697a8aa186f930077c1f766a56a8bc7c78f052aa55f77e99360d4f3150c525a9_s390xRHEA-2023:7311
Fixed in:toolset@sha256:1438b41a97337f91f08a7f4d6b859cc5232f1defb6067873a0dfe20970774015_ppc64leRHEA-2023:7311
rhel8/goRed Hat / RHEL
Fixed in:toolset@sha256:1438b41a97337f91f08a7f4d6b859cc5232f1defb6067873a0dfe20970774015_ppc64leRHEA-2023:7311
Fixed in:toolset@sha256:697a8aa186f930077c1f766a56a8bc7c78f052aa55f77e99360d4f3150c525a9_s390xRHEA-2023:7311
Fixed in:toolset@sha256:c5e43b8090e6ed26c86143a4d7e6ff8fb8556485293f1343c1d7522f7e4c01c5_amd64RHEA-2023:7311
Fixed in:toolset@sha256:cb8b8324d59b195dd02c71e5368d2022d6eef4d34d1a4bc3a6386656f5ae172a_arm64RHEA-2023:7311
ubi8/goRed Hat / RHEL
Fixed in:toolset@sha256:c5e43b8090e6ed26c86143a4d7e6ff8fb8556485293f1343c1d7522f7e4c01c5_amd64RHEA-2023:7311
Fixed in:toolset@sha256:697a8aa186f930077c1f766a56a8bc7c78f052aa55f77e99360d4f3150c525a9_s390xRHEA-2023:7311
Fixed in:toolset@sha256:cb8b8324d59b195dd02c71e5368d2022d6eef4d34d1a4bc3a6386656f5ae172a_arm64RHEA-2023:7311
Fixed in:toolset@sha256:1438b41a97337f91f08a7f4d6b859cc5232f1defb6067873a0dfe20970774015_ppc64leRHEA-2023:7311
ubi8/goRocky
Fixed in:toolset@sha256:697a8aa186f930077c1f766a56a8bc7c78f052aa55f77e99360d4f3150c525a9_s390xRHEA-2023:7311
Fixed in:toolset@sha256:cb8b8324d59b195dd02c71e5368d2022d6eef4d34d1a4bc3a6386656f5ae172a_arm64RHEA-2023:7311
Fixed in:toolset@sha256:1438b41a97337f91f08a7f4d6b859cc5232f1defb6067873a0dfe20970774015_ppc64leRHEA-2023:7311
Fixed in:toolset@sha256:c5e43b8090e6ed26c86143a4d7e6ff8fb8556485293f1343c1d7522f7e4c01c5_amd64RHEA-2023:7311
golang-1.17Ubuntu
Fixed in:1.17.13-3ubuntu1.3USN-7111-1
golang-1.17-goUbuntu
Fixed in:1.17.13-3ubuntu1.3USN-7111-1
golang-1.17-srcUbuntu
Fixed in:1.17.13-3ubuntu1.3USN-7111-1
golang-1.18Ubuntu
Fixed in:1.18.1-1ubuntu1~16.04.6+esm1USN-7109-1
Fixed in:1.18.1-1ubuntu1~18.04.4+esm1USN-7109-1
Fixed in:1.18.1-1ubuntu1~20.04.3USN-7109-1
Fixed in:1.18.1-1ubuntu1.2USN-7109-1
golang-1.18-goUbuntu
Fixed in:1.18.1-1ubuntu1~16.04.6+esm1USN-7109-1
Fixed in:1.18.1-1ubuntu1~18.04.4+esm1USN-7109-1
Fixed in:1.18.1-1ubuntu1~20.04.3USN-7109-1
Fixed in:1.18.1-1ubuntu1.2USN-7109-1
golang-1.18-srcUbuntu
Fixed in:1.18.1-1ubuntu1~16.04.6+esm1USN-7109-1
Fixed in:1.18.1-1ubuntu1~18.04.4+esm1USN-7109-1
Fixed in:1.18.1-1ubuntu1~20.04.3USN-7109-1
Fixed in:1.18.1-1ubuntu1.2USN-7109-1
golang-1.20Ubuntu
Fixed in:1.20.3-1ubuntu0.1~20.04.1USN-6574-1
Fixed in:1.20.3-1ubuntu0.1~22.04.1USN-6574-1
Fixed in:1.20.3-1ubuntu0.2USN-6574-1
Fixed in:1.20.8-1ubuntu0.23.10.1USN-6574-1
golang-1.20-goUbuntu
Fixed in:1.20.3-1ubuntu0.1~20.04.1USN-6574-1
Fixed in:1.20.3-1ubuntu0.1~22.04.1USN-6574-1
Fixed in:1.20.3-1ubuntu0.2USN-6574-1
Fixed in:1.20.8-1ubuntu0.23.10.1USN-6574-1
golang-1.20-srcUbuntu
Fixed in:1.20.3-1ubuntu0.1~20.04.1USN-6574-1
Fixed in:1.20.3-1ubuntu0.1~22.04.1USN-6574-1
Fixed in:1.20.3-1ubuntu0.2USN-6574-1
Fixed in:1.20.8-1ubuntu0.23.10.1USN-6574-1
golang-1.21Ubuntu
Fixed in:1.21.1-1~ubuntu20.04.2USN-6574-1
Fixed in:1.21.1-1~ubuntu22.04.2USN-6574-1
Fixed in:1.21.1-1~ubuntu23.04.2USN-6574-1
Fixed in:1.21.1-1ubuntu0.23.10.1USN-6574-1
golang-1.21-goUbuntu
Fixed in:1.21.1-1~ubuntu20.04.2USN-6574-1
Fixed in:1.21.1-1~ubuntu22.04.2USN-6574-1
Fixed in:1.21.1-1~ubuntu23.04.2USN-6574-1
Fixed in:1.21.1-1ubuntu0.23.10.1USN-6574-1
golang-1.21-srcUbuntu
Fixed in:1.21.1-1~ubuntu20.04.2USN-6574-1
Fixed in:1.21.1-1~ubuntu22.04.2USN-6574-1
Fixed in:1.21.1-1~ubuntu23.04.2USN-6574-1
Fixed in:1.21.1-1ubuntu0.23.10.1USN-6574-1
Go Programming LanguageWindows application
Affected:1.21.0 1.21.2Fixed in:1.21.2https://go.dev
Affected:1.20.9Fixed in:1.20.9https://go.dev

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

1.76%probability of exploitation in 30 days
75thpercentile

Elevated risk: more likely to be exploited than 75% of all known CVEs.

References

Embed a live status badge for CVE-2023-39323
CVE-2023-39323 severity badge

Markdown

[![CVE-2023-39323](https://tridentstack.com/cve/badge/CVE-2023-39323.svg)](https://tridentstack.com/cve/CVE-2023-39323)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-39323"><img src="https://tridentstack.com/cve/badge/CVE-2023-39323.svg" alt="CVE-2023-39323"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-06-12.