8.1

CVE-2023-39323: Arbitrary code execution during build via line directives in cmd/go

Modified
AliasesSUSE-SU-2023:4017-1SUSE-SU-2023:4018-1UBUNTU-CVE-2023-39323
Published 05-10-2023Last modified 12-06-2025

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.

Priority
Prioritisesevere

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?
CVSS score
8.1/10
010
High · v3.1 (CVE.org)
EPSS score
1.91%
0%100%
Low · +0.15 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 12

Timeline

  1. 05-10-2023
    PublishedVulnerability first disclosed.
  2. 12-06-2025
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

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
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 links
Show all 27 references