CVE-2025-22867

Arbitrary code execution during build on darwin in cmd/go

State
Published
Severity
7.5 High
Published
Feb 6, 2025
Updated
Feb 6, 2025
Reserved
Jan 8, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
cmd/goGo toolchain
  • 1.24.0-rc.2 to before 1.24.0-rc.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.