Lucene search

K
osvGoogleOSV:BIT-GOLANG-2023-39323
HistoryMar 06, 2024 - 10:53 a.m.

BIT-golang-2023-39323

2024-03-0610:53:48
Google
osv.dev
11
line directives
bypass restrictions
arbitrary code execution
compilation
absolute path

7.7 High

AI Score

Confidence

Low

0.002 Low

EPSS

Percentile

52.8%

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.

CPENameOperatorVersion
golanglt1.20.9
golanglt1.21.2
golangge1.21.0