Line directives ("//line") can be used to bypass the...
Critical severity
Unreviewed
Published
Oct 5, 2023
to the GitHub Advisory Database
•
Updated Dec 4, 2023
Description
Published by the National Vulnerability Database
Oct 5, 2023
Published to the GitHub Advisory Database
Oct 5, 2023
Last updated
Dec 4, 2023
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.
References