{"cve":"CVE-2022-1240","nvd":{"published":"2022-04-06T11:15:07.587","modified":"2026-06-17T04:22:04.463","status":"Modified","description":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in GitHub repository radareorg/radare2 prior to 5.8.6. If address sanitizer is disabled during the compiling, the program should executes into the `r_str_ncpy` function. Therefore I think it is very likely to be exploitable. For more general description of heap buffer overflow, see [CWE](https://cwe.mitre.org/data/definitions/122.html).","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-787","CWE-122"],"references":["https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc","https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc"],"products":["radare:radare2"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-1240","score":0.00737,"percentile":0.54498,"date":"2026-10-31"},"kev":null,"osv":[],"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."]}