{"cve":"CVE-2024-24787","nvd":{"published":"2024-05-08T16:15:08.183","modified":"2026-06-17T07:14:51.640","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.4},"cwes":[],"references":["http://www.openwall.com/lists/oss-security/2024/05/08/3","https://go.dev/cl/583815","https://go.dev/issue/67119","https://groups.google.com/g/golang-announce/c/wkkO4P9stm0","https://pkg.go.dev/vuln/GO-2024-2825"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:49:23.840078609+00:00"},"epss":{"cve":"CVE-2024-24787","score":0.00766,"percentile":0.55503,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GO-2024-2825","url":"https://osv.dev/vulnerability/GO-2024-2825","summary":"Arbitrary code execution during build on Darwin in cmd/go","modified":"2026-02-04T02:31:37.758576Z","packages":[{"ecosystem":"Go","name":"toolchain","purl":"pkg:golang/toolchain","ranges":["<1.21.10",">=1.22.0-0 <1.22.3"],"fixed":["1.21.10","1.22.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}