// For flags

CVE-2024-24787

Arbitrary code execution during build on Darwin in cmd/go

Severity Score

6.4
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

1
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track*
*SSVC
Descriptions

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.

En Darwin, crear un módulo Go que contenga CGO puede desencadenar la ejecución de código arbitrario cuando se usa la versión Apple de ld, debido al uso del indicador -lto_library en una directiva "#cgo LDFLAGS".

*Credits: Juho Forsén (Mattermost)
CVSS Scores
Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:Track*
Exploitation
None
Automatable
No
Tech. Impact
Total
* Organization's Worst-case Scenario
Timeline
  • 2024-01-30 CVE Reserved
  • 2024-05-08 CVE Published
  • 2024-05-10 First Exploit
  • 2024-06-11 EPSS Updated
  • 2024-08-01 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
CWE
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Go Toolchain
Search vendor "Go Toolchain"
Cmd/go
Search vendor "Go Toolchain" for product "Cmd/go"
< 1.21.10
Search vendor "Go Toolchain" for product "Cmd/go" and version " < 1.21.10"
en
Affected
Go Toolchain
Search vendor "Go Toolchain"
Cmd/go
Search vendor "Go Toolchain" for product "Cmd/go"
>= 1.22.0-0 < 1.22.3
Search vendor "Go Toolchain" for product "Cmd/go" and version " >= 1.22.0-0 < 1.22.3"
en
Affected