🛡️ CVE-2024-24787 — golang
Description
Arbitrary code execution during build on Darwin in cmd/go
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 this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is high, an attacker needs administrative privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Affected software
CVE-2024-24787 is recorded against 4 packages.
- golang
- newrelic-fluent-bit-output (fixed in 2.0.0-r0)
- toolchain
- unknown
Timeline and source
Published on 14 May 2024 and last revised on 28 January 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
go.dev (Web)
go.dev (Web)
groups.google.com (Web)
pkg.go.dev (Web)
www.openwall.com (Web)
security.netapp.com (Web)
nvd.nist.gov (Web)
Details
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| golang | — | — |
| newrelic-fluent-bit-output | — | 2.0.0-r0 |
| toolchain | — | — |
| unknown | — | — |
References
Similar Threats
- Unknown ALSA-2024:2562
- Unknown ALSA-2024:1963
- Unknown ALSA-2024:1962
- Unknown ALSA-2024:1462
- Unknown ALSA-2024:1472
More CVE 2024 advisories
Browse all of CVE 2024 in the advisory index.
Vulnerability Monitoring
Track new vulnerabilities in golang
CVE-2024-24787 is rated CVSS 6.4 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.