{"id":"CVE-2025-22867","aliases":["CVE-2025-22867","GO-2025-3428","BIT-GOLANG-2025-22867"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary code execution during build on darwin in cmd/go","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En Darwin, la creación de un módulo Go que contiene CGO puede desencadenar la ejecución de código arbitrario al utilizar la versión Apple de ld, debido al uso de los valores especiales @executable_path, @loader_path o @rpath en una directiva \"#cgo LDFLAGS\". Este problema solo afectó a go1.24rc2.","source":"nvd"}],"published":"2025-02-06T16:54:38.000Z","modified":"2026-06-17T08:50:39.083Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"type":"semver","introduced":"1.24.0-rc.2","fixed":"1.24.0-rc.3","status":"affected"}],"vendor":"Go toolchain","product":"cmd/go","package":"cmd/go","platforms":["darwin"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.24.0-rc.2","status":"affected","fixed":"1.24.0-rc.3"}],"ecosystem":"Go","package":"toolchain","purl":"pkg:golang/toolchain","source":"go"},{"ranges":[{"type":"semver","introduced":"1.24.0-rc.2","status":"affected","fixed":"1.24.0-rc.3"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/cl/646996","tags":["fix","web"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/issue/71476","tags":["report","web"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y","tags":["web"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3428","tags":["web"],"sources":["cvelist","nvd","bitnami"]}],"credits":["Juho Forsén of Mattermost"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-02-06T20:06:49.179Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-22867","url":"https://www.cve.org/CVERecord?id=CVE-2025-22867","licence":"CVE Terms of Use","modified":"2025-02-06T21:23:25.105Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3428","url":"https://pkg.go.dev/vuln/GO-2025-3428","licence":"CC-BY-4.0","modified":"2025-02-08T08:11:39.466Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-22867","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22867","licence":"Public domain","modified":"2026-06-17T08:50:39.083Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2025-22867","url":"https://osv.dev/vulnerability/BIT-GOLANG-2025-22867","licence":"Apache-2.0","modified":"2025-02-08T08:11:39.466Z"}],"updatedAt":"2026-11-25T22:58:53.882Z","epss":{"score":0.00631,"percentile":0.51577,"date":"2026-12-01T12:00:22.000Z"}}