UNKNOWN Go

Arbitrary code execution during build on darwin in cmd/go

GO-2025-3428 · BIT-golang-2025-22867 · CVE-2025-22867

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes