Security mailing lists by PureSourceCode

CVE-2024-24787

MEDIUM 6.4CVSS 3.1

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.

Published
8 May 2024
Last modified
17 Jun 2026
Assigned by
security@golang.org
NVD status
Deferred
Also known as
BIT-golang-2024-24787GO-2024-2825
Sources
NVDJSONOSV GO-2024-2825JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 6.4 CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go toolchain < 1.21.10; >= 1.22.0-0, < 1.22.3 1.21.10, 1.22.3

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 8 May 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 May 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.