Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-24787

CVE-2024-24787 affecting package msft-golang for versions less than 1.22.3

Overview

Published
8 May 2024
Modified
17 Jun 2026
Medium CVE
1 Registry packages
342 OS packages
7 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

6.4 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
High
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected packages · 1

Packages affected by CVE-2024-24787
EcosystemPackageVulnerableFixed in
Bitnami golang <1.21.10>=1.22.0-0, <1.22.3 1.21.101.22.3

Open a package to see all its vulnerabilities.

Operating systems · 514 fixes

Photon OS 2 releases · 1 package

fixed 2
go
Photon OS fixes for CVE-2024-24787
ReleasePackageFixed in
4.0 go 1.21.12-1.ph4
5.0 go 1.21.12-1.ph5

SUSE Linux Enterprise 4 releases · 4 packages

fixed 10
go1-21 go1-22 go1-21-openssl go1-22-openssl
SUSE Linux Enterprise fixes for CVE-2024-24787
ReleasePackageFixed inAdvisory
12.5 go1-21 +1 1.21.10-1.33.1 SUSE-SU-2024:1574-1
12.5 go1-22 +1 1.22.3-1.9.1 SUSE-SU-2024:1573-1
15.4 go1-21 +2 1.21.10-150000.1.33.1 SUSE-SU-2024:1588-1
15.4 go1-21-openssl +2 1.21.13.1-150000.1.11.1 SUSE-SU-2024:3089-1
15.5 go1-21 +2 1.21.10-150000.1.33.1 SUSE-SU-2024:1588-1
15.5 go1-21-openssl +2 1.21.13.1-150000.1.11.1 SUSE-SU-2024:3089-1

4 more rows

chainguard 1 release · 292 packages

fixed 292
harbor-cli pombump gke-gcloud-auth-plugin wireguard-go spegel local-path-provisioner +286
chainguard fixes for CVE-2024-24787
ReleasePackageFixed in
harbor-cli 0.0.1-r2
pombump 0.0.12-r2
gke-gcloud-auth-plugin 0.0.2-r10
wireguard-go 0.0.20230223-r11
spegel 0.0.22-r1
local-path-provisioner 0.0.27-r0

286 more rows

minimos 1 release · 2 packages

fixed 2
solr-operator-0-8 trigger-dev
minimos fixes for CVE-2024-24787
ReleasePackageFixed in
solr-operator-0-8 0.8.1-r1
trigger-dev 4.5.11-r1

openSUSE 1 release · 2 packages

fixed 2
go1-21 go1-22
openSUSE fixes for CVE-2024-24787
ReleasePackageFixed inAdvisory
Tumbleweed go1-21 +3 1.21.10-1.1 openSUSE-SU-2024:13941-1
Tumbleweed go1-22 +3 1.22.3-1.1 openSUSE-SU-2024:13936-1

wolfi 1 release · 202 packages

fixed 202
harbor-cli pombump gke-gcloud-auth-plugin wireguard-go spegel local-path-provisioner +196
wolfi fixes for CVE-2024-24787
ReleasePackageFixed in
harbor-cli 0.0.1-r2
pombump 0.0.12-r2
gke-gcloud-auth-plugin 0.0.2-r10
wireguard-go 0.0.20230223-r11
spegel 0.0.22-r1
local-path-provisioner 0.0.27-r0

196 more rows

alpine 4 releases · 1 package

not affected 4
go
alpine fixes for CVE-2024-24787
ReleasePackageFixed in
3.22 go not affected
3.23 go not affected
3.24 go not affected
edge go not affected

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.