{"id":"CVE-2025-22867","state":"PUBLISHED","title":"Arbitrary code execution during build on darwin in cmd/go","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.","publishedAt":"2025-02-06T17:09:56.893Z","updatedAt":"2025-02-06T21:23:25.105Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CISA-ADP"},"assigner":"Go","products":["Go toolchain cmd/go"],"affected":[{"vendor":"Go toolchain","product":"cmd/go","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"1.24.0-rc.2","status":"affected","lessThan":"1.24.0-rc.3","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","platforms":["darwin"]}],"references":["https://go.dev/cl/646996","https://go.dev/issue/71476","https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y","https://pkg.go.dev/vuln/GO-2025-3428"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22867.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-22867","state":"PUBLISHED","datePublished":"2025-02-06T17:09:56.893Z","dateUpdated":"2025-02-06T21:23:25.105Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2025-01-08T19:11:42.834Z"},"containers":{"cna":{"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","packageName":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"1.24.0-rc.2","status":"affected","lessThan":"1.24.0-rc.3","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","platforms":["darwin"]}],"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"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2025-02-06T17:09:56.893Z"},"credits":[{"lang":"en","value":"Juho Forsén of Mattermost"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-02-06T20:06:49.179700Z","id":"CVE-2025-22867","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-06T21:23:25.105Z"}}]}}}