CVE-2023-39323

Aliases:GO-2023-2095BIT-golang-2023-39323
Modified
Published: 05 Oct 2023, 20:36
Last modified:12 Jun 2025, 15:15

Vulnerability Summary

Overall Risk (default)
medium
32/100
CVSS Score
8.1 HIGH
v3.1 (cve.org)
EPSS Score
0.06% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

05 Oct 2023, 20:36
Published
Vulnerability first disclosed
12 Jun 2025, 15:15
Last Modified
Vulnerability 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

  • v3.1HIGHScore: 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 0.06% Percentile: 19%

Affected Systems

  • fedoraprojectfedora

    37 | 38 | 39

  • go toolchaincmd/go

    < 1.20.9 | ≥ 1.21.0-0, < 1.21.2

  • golanggo

    < 1.20.9 | ≥ 1.21.0, < 1.21.2

  • Gotoolchain

    ≥ 1.21.0-0, < 1.21.2

References (9)