← CVE Intelligence

CVE-2023-39323

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

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
Go toolchain / cmd/goaffected 0 before 1.20.9; affected 1.21.0-0 before 1.21.2

CWE

No CWE identifiers supplied.

References

ADP enrichment

CVE

No English description supplied.

CISA-ADP

No English description supplied.

No references supplied.