GO-2025-3428

Source
https://pkg.go.dev/vuln/GO-2025-3428
Import Source
https://vuln.go.dev/ID/GO-2025-3428.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2025-3428
Aliases
Published
2025-02-06T16:54:38Z
Modified
2025-02-08T08:11:48.421523Z
Summary
Arbitrary code execution during build on darwin in cmd/go
Details

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 @executablepath, @loaderpath, or @rpath special values in a "#cgo LDFLAGS" directive. This issue only affected go1.24rc2.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2025-3428"
}
References
Credits
    • Juho Forsén of Mattermost

Affected packages

Go / toolchain

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.24.0-rc.2
Fixed
1.24.0-rc.3

Ecosystem specific

{
    "imports": [
        {
            "path": "cmd/go",
            "goos": [
                "darwin"
            ]
        }
    ]
}