FlawAtlas
Search the atlas
CVE-2025-22867 High

Arbitrary code execution during build on darwin in cmd/go

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.

Exploit probability 0.6%
Published February 6, 2025
Required by Not available
Last source change February 8, 2025

02 / AFFECTED SOFTWARE

Affected packages

Bitnami golang
Go toolchain

04 / EVIDENCE

Source records

Open Source Vulnerabilities BIT-golang-2025-22867

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.

View original source
Open Source Vulnerabilities GO-2025-3428

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.

View original source

05 / REFERENCES

Further evidence