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.
Published: 2023-10-05
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

Remediation

No remediation available yet.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2023-43055 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.
Ubuntu USN Ubuntu USN USN-6574-1 Go vulnerabilities
Ubuntu USN Ubuntu USN USN-7109-1 Go vulnerabilities
Ubuntu USN Ubuntu USN USN-7111-1 Go vulnerabilities
History

Thu, 12 Jun 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sun, 08 Sep 2024 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:8
Vendors & Products Redhat
Redhat enterprise Linux

Subscriptions

Fedoraproject Fedora
Golang Go
Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2025-06-12T15:15:12.065Z

Reserved: 2023-07-27T17:05:55.188Z

Link: CVE-2023-39323

cve-icon Vulnrichment

Updated: 2024-08-02T18:02:06.899Z

cve-icon NVD

Status : Modified

Published: 2023-10-05T21:15:11.283

Modified: 2025-06-12T16:15:20.520

Link: CVE-2023-39323

cve-icon Redhat

Severity : Moderate

Publid Date: 2023-10-05T00:00:00Z

Links: CVE-2023-39323 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses