{"id":"CVE-2022-1240","aliases":["CVE-2022-1240"],"related":[],"kind":"vulnerability","state":"published","title":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"es","text":"Un desbordamiento de búfer en la región Heap de la memoria en el archivo libr/bin/format/mach0/mach0.c en el repositorio de GitHub radareorg/radare2 versiones anteriores a 5.8.6. Si es deshabilitado el saneador de direcciones durante la compilación, el programa debería ejecutarse en la función \"r_str_ncpy\". Por lo tanto, creo que es muy probable que sea explotable. Para una descripción más general del desbordamiento del búfer de la pila, vea [CWE](https://cwe.mitre.org/data/definitions/122.html)","source":"nvd"}],"published":"2022-04-06T10:15:15.000Z","modified":"2026-06-17T04:22:04.463Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-122","CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"5.8.6","status":"affected"}],"vendor":"radareorg","product":"radareorg/radare2","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"5.6.6"}],"vendor":"radare","product":"radare2","cpe":"cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc","tags":["exploit","issue-tracking","patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-1240","url":"https://www.cve.org/CVERecord?id=CVE-2022-1240","licence":"CVE Terms of Use","modified":"2024-08-02T23:55:24.530Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-1240","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1240","licence":"Public domain","modified":"2026-06-17T04:22:04.463Z"}],"updatedAt":"2026-11-25T22:58:10.448Z","epss":{"score":0.00733,"percentile":0.55605,"date":"2026-12-01T12:00:22.000Z"}}