CVE-2025-22867

NameCVE-2025-22867
DescriptionOn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-1.24 (PTS)trixie1.24.2-2fixed
sid1.24.4-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-1.24source(unstable)(not affected)

Notes

- golang-1.24 <not-affected> (Only affects Go module building on Darwin)
https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y

Search for package or bug name: Reporting problems