{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-22867","id":"CVE-2025-22867","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.","descriptionLong":"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.","published":"2025-02-06T17:09:56.893Z","updated":"2026-06-17T08:50:39.083Z","reserved":"2025-01-08T19:11:42.834Z","status":"Deferred","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"CISA-ADP"}],"rating":"high","products":["Go toolchain cmd/go"],"affectedProducts":[{"vendor":"Go toolchain","product":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"1.24.0-rc.2","lessThan":"1.24.0-rc.3","status":"affected","versionType":"semver"}],"platforms":["darwin"]}],"packages":[],"cwes":["CWE-77"],"aliases":[],"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":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00631,"epssPercentile":0.51047,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-22867","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22867","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-22867","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-22867","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}