CVE-2025-22867
CVE-2025-22867 · Arbitrary code execution during build on darwin in cmd/go
CVSS 7.5 · High · EPSS 1.1% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- cmd/goUpdate to 1.24.0-rc.3
Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2025:0431-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Development Tools 15 SP6 ·
- SUSE-SU-2025:0429-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Package Hub 15 SP6 ·
- openSUSE-SU-2025:14754-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2025:14735-1 · openSUSE Tumbleweed ·
Affected products and versions
cmd/go
- Versions
- ≥ 1.24.0-rc.2, < 1.24.0-rc.3: Affected (semver)
Update to 1.24.0-rc.3