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
12
line directives
bypass restrictions
arbitrary code execution
compilation
absolute path

8.1 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

7.7 High

AI Score

Confidence

Low

0.002 Low

EPSS

Percentile

53.4%

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.21.2
golanglt1.20.9
golangge1.21.0

8.1 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

7.7 High

AI Score

Confidence

Low

0.002 Low

EPSS

Percentile

53.4%