{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-24787","id":"CVE-2024-24787","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 -lto_library flag in a \"#cgo LDFLAGS\" directive.","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 -lto_library flag in a \"#cgo LDFLAGS\" directive.","published":"2024-05-08T15:31:14.530Z","updated":"2026-06-17T07:14:51.640Z","reserved":"2024-01-30T16:05:14.758Z","status":"Deferred","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"CISA-ADP"}],"rating":"medium","products":["Go toolchain cmd/go"],"affectedProducts":[{"vendor":"Go toolchain","product":"cmd/go","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.21.10","status":"affected","versionType":"semver"},{"version":"1.22.0-0","lessThan":"1.22.3","status":"affected","versionType":"semver"}],"platforms":["darwin"]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://go.dev/issue/67119","tags":["x_transferred"]},{"url":"https://go.dev/cl/583815","tags":["x_transferred"]},{"url":"https://groups.google.com/g/golang-announce/c/wkkO4P9stm0","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2825","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240531-0006/","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/08/3","tags":["x_transferred"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.0076,"epssPercentile":0.5606,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-24787","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24787","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-24787","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-2024-24787","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}