Live threats

All CVEs / Go toolchain

CVE-2025-22867Go toolchain cmd/go

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Feb 6, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for cmd/go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go toolchain ≥ 1.24.0-rc.2 < 1.24.0-rc.3 1.24.0-rc.3 go get toolchain@v1.24.0-rc.3

Per OSV / GitHub Advisories (GO-2025-3428). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.