CVE-2024-24787

medium

Description

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.

References

https://security.netapp.com/advisory/ntap-20240531-0006/

https://pkg.go.dev/vuln/GO-2024-2825

https://groups.google.com/g/golang-announce/c/wkkO4P9stm0

https://go.dev/issue/67119

https://go.dev/cl/583815

http://www.openwall.com/lists/oss-security/2024/05/08/3

Details

Source: Mitre, NVD

Published: 2024-05-08

Updated: 2024-07-03

Risk Information

CVSS v2

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Severity: Critical

CVSS v3

Base Score: 6.4

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

Severity: Medium