🛡️ CVE-2024-24787 — golang

🟡 CVSS 6.4 — Medium ✅ No Known Exploit NVD
6.4
CVSS Score
0 Low4 Medium7 High9 Critical10

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

Severity MEDIUM
CVSS Score 6.4
CVSS Vector CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-05-14
Updated 2026-08-12
Modified 2026-01-28
Fix URL N/A

Affected Packages

Software From version Fixed in
golang
newrelic-fluent-bit-output 2.0.0-r0
toolchain
unknown

Similar Threats

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.