VYPR
Unrated severityNVD Advisory· Published Oct 5, 2023· Updated Jun 12, 2025

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

CVE-2023-39323

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

40

Patches

Vulnerability mechanics

References

9

News mentions

0

No linked articles in our index yet.