CVE-2023-39323 - CVE House
Back to Database
Status published Unknown CVE-2023-39323

Arbitrary code execution during build via line directives in cmd/go

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2023-39323

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Go toolchain

View all reports →

Affected Software

cmd/go
Vulnerable Versions:
0, 1.21.0-0

Timeline

Official Publish: October 5th, 2023
Last Modified: June 12th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.