Skip to content
Fencer Intel
high 7.5

CVE-2025-22867 json

Arbitrary code execution during build on darwin in cmd/go

published last yr. modified 4mo ago also BIT-golang-2025-22867 , EUVD-2025-3035 , GO-2025-3428

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 51%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami golang 1.24.0-rc.3
  • go toolchain 1.24.0-rc.3
  • Go toolchain cmd/go 1.24.0-rc.3
  • go1.24 SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.24rc3-150000.1.6.1
  • govulncheck-vulndb SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 0.0.20250207T224745-150000.1.32.1

suse advisories SUSE-SU-2025:0431-1SUSE-SU-2025:0429-1

  • govulncheck-vulndb openSUSE Tumbleweed 0.0.20250207T224745-1.1
  • go1.24 openSUSE Tumbleweed 1.24rc3-1.1

opensuse advisories openSUSE-SU-2025:14754-1openSUSE-SU-2025:14735-1

Is CVE-2025-22867 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-22867 updated cvss 7.5

cmd/go: Arbitrary code execution during build on darwin in cmd/go

  • Red Hat Enterprise Linux 8 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 9 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 10 golang Red Hat Storage 3 golang, golang-bin, golang-src, golang-misc, golang-tests Red Hat Trusted Artifact Signer fulcio-rhel9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
last yr.

Exploit prediction

0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
bitnami golang
>=1.24.0-rc.2, <1.24.0-rc.3
1.24.0-rc.3
go toolchain
>=1.24.0-rc.2, <1.24.0-rc.3
1.24.0-rc.3

Affected products

  • Go toolchain cmd/go

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.