blob: d4319d740d0038ef7b31b2f2238934a4145f5c27 [file] [log] [blame]
{
"dataType": "CVE_RECORD",
"dataVersion": "5.0",
"cveMetadata": {
"cveId": "CVE-2025-22867"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc"
},
"title": "Arbitrary code execution during build on darwin in cmd/go",
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"affected": [
{
"vendor": "Go toolchain",
"product": "cmd/go",
"collectionURL": "https://pkg.go.dev",
"packageName": "cmd/go",
"versions": [
{
"version": "1.24.0-rc.2",
"lessThan": "1.24.0-rc.3",
"status": "affected",
"versionType": "semver"
}
],
"platforms": [
"darwin"
],
"defaultStatus": "unaffected"
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')"
}
]
}
],
"references": [
{
"url": "https://go.dev/cl/646996"
},
{
"url": "https://go.dev/issue/71476"
},
{
"url": "https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y"
},
{
"url": "https://pkg.go.dev/vuln/GO-2025-3428"
}
],
"credits": [
{
"lang": "en",
"value": "Juho Forsén of Mattermost"
}
]
}
}
}