{"id":"CVE-2025-22867","published":"2025-02-06T17:09:56Z","modified":"2025-02-06T21:23:25Z","title":"Arbitrary code execution during build on darwin in cmd/go","vendor":"Go toolchain","product":"cmd/go","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00631,"percentile":0.51182,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/646996","tags":[]},{"url":"https://go.dev/issue/71476","tags":[]},{"url":"https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2025-3428","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.24},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"go-toolchain","affectedVersions":[{"vendor":"Go toolchain","product":"cmd/go","versions":[">= 1.24.0-rc.2, < 1.24.0-rc.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-06T20:06:49.179700Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":[">=1.24.0-rc.2, <1.24.0-rc.3"],"patched":["1.24.0-rc.3"],"from":["GO-2025-3428"],"provenance":"source"}],"summary":{"text":"A flaw in the cmd/go component of the Go toolchain on Darwin allows code to run during the build of a Go module containing CGO when the Apple ld linker is used with @executable_path, @loader_path, or @rpath values in a \"#cgo LDFLAGS\" directive. An attacker who can supply such a module can execute arbitrary code by getting a build to run, with no authentication, user interaction, or special configuration required beyond the build itself.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:07Z"},"euvd":{"id":"EUVD-2025-3035","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-45285","published":"2023-12-06","fixed":"1.21.5","kev":false},{"cve":"CVE-2024-24787","published":"2024-05-08","fixed":"1.22.3","kev":false},{"cve":"CVE-2024-45340","published":"2025-01-28","fixed":"1.24.0-rc.2","kev":false,"link":{"from":"CVE-2024-45340","to":"CVE-2025-22867","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.24.0-rc.2","toFixed":"1.24.0-rc.3","daysApart":9}]}},{"cve":"CVE-2025-22867","published":"2025-02-06","fixed":"1.24.0-rc.3","kev":false},{"cve":"CVE-2025-4674","published":"2025-07-29","fixed":"1.24.5","kev":false},{"cve":"CVE-2025-61731","published":"2026-01-28","fixed":"1.25.6","kev":false},{"cve":"CVE-2025-68119","published":"2026-01-28","fixed":"1.25.6","kev":false}],"package":"Go:toolchain"}}