CVE-2023-39323: Arbitrary code execution during build via line directives in cmd/go
Vulnerability summary
CVE-2023-39323 is a high (CVSS 8.1) vulnerability in fedoraproject fedora. EPSS estimates a 1.91% chance of exploitation in the next 30 days, higher than 79.8% of scored vulnerabilities.
Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 12Timeline
- 05-10-2023PublishedVulnerability first disclosed.
- 12-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.91%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
Increase +0.15 pp
From 1.76% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard14 products
- configmap-reload-fips< 0.12.0-r2
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r31 | < 0.19.0-r40
Wolfi12 products
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compat< 0.19.0-r40
- katib-suggestion-hyperband< 0.19.0-r31
- katib-suggestion-hyperopt< 0.19.0-r31 | < 0.19.0-r40
- katib-suggestion-nas-darts< 0.19.0-r31
Opensuse6 products
- go1.20&distro=openSUSE Leap 15.4< 1.20.9-150000.1.26.1
- go1.20&distro=openSUSE Leap 15.5< 1.20.9-150000.1.26.1
- go1.20&distro=openSUSE Tumbleweed< 1.20.9-1.1
- go1.21&distro=openSUSE Leap 15.4< 1.21.2-150000.1.9.1
- go1.21&distro=openSUSE Leap 15.5< 1.21.2-150000.1.9.1
Suse4 products
- go1.20&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4< 1.20.9-150000.1.26.1
- go1.20&distro=SUSE Linux Enterprise Module for Development Tools 15 SP5< 1.20.9-150000.1.26.1
- go1.21&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4< 1.21.2-150000.1.9.1
- go1.21&distro=SUSE Linux Enterprise Module for Development Tools 15 SP5< 1.21.2-150000.1.9.1
Ubuntu4 products
- golang-1.17< 1.17.13-3ubuntu1.3
- golang-1.18< 1.18.1-1ubuntu1~16.04.6+esm1 | < 1.18.1-1ubuntu1~18.04.4+esm1 | < 1.18.1-1ubuntu1~20.04.3 | < 1.18.1-1ubuntu1.2
- golang-1.20< 1.20.3-1ubuntu0.1~20.04.1 | < 1.20.3-1ubuntu0.1~22.04.1
- golang-1.21< 1.21.1-1~ubuntu20.04.2 | < 1.21.1-1~ubuntu22.04.2
Alpine1 product
- go≥ 1.21.0, < 1.20.9-r0 | ≥ 1.21.0, < 1.21.2-r0
Debian1 product
- golang-1.19All versions (No fix recorded)
Fedoraproject1 product
- fedoraEOL37 | 38 | 39
Go1 product
- toolchain≥ 1.21.0-0, < 1.21.2
Go toolchain1 product
- cmd/go< 1.20.9 | ≥ 1.21.0-0, < 1.21.2
Golang1 product
- go< 1.20.9 | ≥ 1.21.0, < 1.21.2
11 vendors · 46 products
References
27 linksShow all 27 references
- pkg.go.devWEB