CVE-2024-24787
Arbitrary code execution during build on Darwin in cmd/go
6.4
MEDIUM
CVSS 3.1
EPSS 3.2%
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.
How to fix CVE-2024-24787
To remediate CVE-2024-24787, upgrade the affected package to a fixed version below.
- Bitnami/golang—upgrade to 1.21.10 or later
- —upgrade to 1.21.10 or later
Is CVE-2024-24787 being exploited?
Low — EPSS is 3.2%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.21.10, >= 1.22.0-0, < 1.22.3
- from 0, < 1.21.10, >= 1.22.0-0, < 1.22.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |