Lucene search

K
redhatcveRedhat.comRH:CVE-2023-29404
HistoryJun 26, 2023 - 6:17 p.m.

CVE-2023-29404

2023-06-2618:17:40
redhat.com
access.redhat.com
24
golang
arbitrary code execution
build time
cgo
linker flags
go get
malicious module
untrusted code
ldflags
compiler vulnerability

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

EPSS

0.007

Percentile

81.1%

A flaw was found in golang. The go command may execute arbitrary code at build time when using cgo. This can occur when running โ€œgo getโ€ on a malicious module, or when running any other command which builds untrusted code. This can be triggered by linker flags, specified via a โ€œ#cgo LDFLAGSโ€ directive. The arguments for a number of flags which are non-optional are incorrectly considered optional, allowing disallowed flags to be smuggled through the LDFLAGS sanitization. This affects usage of both the gc and gccgo compilers.

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

EPSS

0.007

Percentile

81.1%