cve.bz

CVE-2024-24787 go toolchain cmd/go

6.4 mediumEPSS 0.8%Fix available

Medium (6.4) in go toolchain cmd/go. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.21.10, 1.22.3.

On this page
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.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-06-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-24787 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-24787?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-24787?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-24787 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go toolchain cmd/gobefore 1.21.10
Go toolchain cmd/gofrom 1.22.0-0 before 1.22.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2024-2825Gotoolchain<1.21.10
>=1.22.0-0 <1.22.3
1.21.10, 1.22.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Development Tools 15 SP5 and 2 morego1.211.21.10-150000.1.33.1SUSE-SU-2024:1588-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Development Tools 15 SP5 and 2 morego1.21-openssl1.21.13.1-150000.1.11.1SUSE-SU-2024:3089-1
SUSELinux Enterprise Module for Development Tools 15 SP5go1.221.22.3-150000.1.15.1SUSE-SU-2024:1587-1
SUSELinux Enterprise Module for Development Tools 15 SP5go1.22-openssl1.22.7.1-150000.1.3.1SUSE-SU-2024:3772-1
SUSELinux Enterprise Module for Development Tools 15 SP6go1.21-openssl1.21.13.1-150600.16.3.1SUSE-SU-2024:3755-1
SUSELinux Enterprise Module for Development Tools 15 SP6go1.22-openssl1.22.7.1-150600.13.3.1SUSE-SU-2024:3938-1
SUSELinux Enterprise Software Development Kit 12 SP5go1.211.21.10-1.33.1SUSE-SU-2024:1574-1
SUSELinux Enterprise Software Development Kit 12 SP5go1.221.22.3-1.9.1SUSE-SU-2024:1573-1
openSUSELeap 15.5go1.21-openssl1.21.13.1-150000.1.11.1SUSE-SU-2024:3089-1
openSUSELeap 15.5go1.22-openssl1.22.7.1-150000.1.3.1SUSE-SU-2024:3772-1
openSUSELeap 15.5, Leap 15.6go1.211.21.10-150000.1.33.1SUSE-SU-2024:1588-1
openSUSELeap 15.5, Leap 15.6go1.221.22.3-150000.1.15.1SUSE-SU-2024:1587-1
openSUSELeap 15.6go1.21-openssl1.21.13.1-150600.16.3.1SUSE-SU-2024:3755-1
openSUSELeap 15.6go1.22-openssl1.22.7.1-150600.13.3.1SUSE-SU-2024:3938-1
openSUSETumbleweedgo1.211.21.10-1.1openSUSE-SU-2024:13941-1
openSUSETumbleweedgo1.221.22.3-1.1openSUSE-SU-2024:13936-1
Azure Linux2msft-golang1.22.3AZL-40428
Azure Linux3golangno fix listedAZL-79058 AZL-98835

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

References

Check your stackJSON