cve.bz

CVE-2025-22867 go toolchain cmd/go

7.5 highEPSS 0.6%Fix available

High (7.5) in go toolchain cmd/go. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.24.0-rc.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 @executable_path, @loader_path, or @rpath special values in a "#cgo LDFLAGS" directive. This issue only affected go1.24rc2.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st 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: yes · Technical impact: partial, assessed 2025-02-06. 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-2025-22867 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22867?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22867?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-2025-22867 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/gofrom 1.24.0-rc.2 before 1.24.0-rc.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2025-3428Gotoolchain>=1.24.0-rc.2 <1.24.0-rc.31.24.0-rc.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise Module for Development Tools 15 SP6go1.241.24rc3-150000.1.6.1SUSE-SU-2025:0431-1
SUSELinux Enterprise Module for Package Hub 15 SP6govulncheck-vulndb0.0.20250207T224745-150000.1.32.1SUSE-SU-2025:0429-1
openSUSELeap 15.6go1.241.24rc3-150000.1.6.1SUSE-SU-2025:0431-1
openSUSELeap 15.6govulncheck-vulndb0.0.20250207T224745-150000.1.32.1SUSE-SU-2025:0429-1
openSUSETumbleweedgo1.241.24rc3-1.1openSUSE-SU-2025:14735-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250207T224745-1.1openSUSE-SU-2025:14754-1

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

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue only affects go1.24rc2. The go1.24rc2 version is not used in any of the Red Hat products, therefore, Red Hat is not affected by this vulnerability.

Red Hat's mitigation

No mitigation is available for this issue other than updating the affected package to the version containing the fix.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10golangNot affected
Red Hat Enterprise Linux 8golangNot affected
Red Hat Enterprise Linux 8go-toolset:rhel8/golangNot affected
Red Hat Enterprise Linux 9golangNot affected
Red Hat Enterprise Linux 9rhel9/go-toolsetNot affected
Red Hat Enterprise Linux 9ubi9/go-toolsetNot affected
Red Hat Storage 3golangNot affected
Red Hat Trusted Artifact Signerrhtas/fulcio-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-22867.

References

Check your stackJSON