Lucene search

K
cvelistGoCVELIST:CVE-2024-24787
HistoryMay 08, 2024 - 3:31 p.m.

CVE-2024-24787 Arbitrary code execution during build on Darwin in cmd/go

2024-05-0815:31:14
Go
www.cve.org
cve-2024-24787
arbitrary code execution
darwin
go module
cgo
apple version of ld
lto_library flag
cmd/go

7.1 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.3%

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.

CNA Affected

[
  {
    "vendor": "Go toolchain",
    "product": "cmd/go",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "cmd/go",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.21.10",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.22.0-0",
        "lessThan": "1.22.3",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "platforms": [
      "darwin"
    ],
    "defaultStatus": "unaffected"
  }
]

7.1 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.3%