Lucene search

K
osvGoogleOSV:GO-2024-2825
HistoryMay 08, 2024 - 3:17 p.m.

Arbitrary code execution during build on Darwin in cmd/go

2024-05-0815:17:04
Google
osv.dev
3
security
code execution
go
darwin
ld
cgo
apple
ldflags

7.6 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.3%

On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the -lto_library flag in a “#cgo LDFLAGS” directive.

7.6 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.3%