{"id":"CVE-2022-1240","published":"2022-04-06T10:15:15Z","modified":"2024-08-02T23:55:24Z","title":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2","vendor":"radareorg","product":"radareorg/radare2","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00737,"percentile":0.55267,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","tags":["x_refsource_MISC"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":11.05},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"radareorg","affectedVersions":[{"vendor":"radareorg","product":"radareorg/radare2","versions":[">= unspecified, < 5.8.6"]}],"euvd":{"id":"EUVD-2022-24575","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-radareorg-radare2-cve-2022-1052","parents":[{"from":"CVE-2022-1052","to":"CVE-2022-1240","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libr/bin/format/mach0/mach0.c"],"commits":["https://github.com/radareorg/radare2/commit/0052500c1ed5bf8263b26b9fd7773dbdc6f170c4","https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4"],"basis":"shared function","functions":["MACH0_"]}]}],"children":[{"from":"CVE-2022-1240","to":"CVE-2022-1649","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libr/bin/format/mach0/mach0.c"],"commits":["https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","https://github.com/radareorg/radare2/commit/a5aafb99c3965259c84ddcf45a91144bf7eb4cf1"],"basis":"shared function","functions":["MACH0_"]}]}]}}