{"api_version":"1","generated_at":"2026-07-23T15:41:31+00:00","cve":"CVE-2022-1240","urls":{"html":"https://cve.report/CVE-2022-1240","api":"https://cve.report/api/cve/CVE-2022-1240.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-1240","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-1240"},"summary":{"title":"CVE-2022-1240","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).","state":"PUBLIC","assigner":"security@huntr.dev","published_at":"2022-04-06 11:15:00","updated_at":"2022-04-14 18:10:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc","name":"https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc","refsource":"CONFIRM","tags":[],"title":"Heap buffer overflow in libr/bin/format/mach0/mach0.c  vulnerability found in radare2","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","name":"https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","refsource":"MISC","tags":[],"title":"Fix oobread in the macho parser ##crash · radareorg/radare2@ca8d8b3 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-1240","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1240","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"1240","vulnerable":"1","versionEndIncluding":"5.6.6","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"radare","cpe5":"radare2","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-1240","qid":"503255","title":"Alpine Linux Security Update for radare2"},{"cve":"CVE-2022-1240","qid":"506228","title":"Alpine Linux Security Update for radare2"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@huntr.dev","ID":"CVE-2022-1240","STATE":"PUBLIC","TITLE":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"radareorg/radare2","version":{"version_data":[{"version_affected":"<","version_value":"5.8.6"}]}}]},"vendor_name":"radareorg"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.6,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","version":"3.0"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-122 Heap-based Buffer Overflow"}]}]},"references":{"reference_data":[{"name":"https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc","refsource":"CONFIRM","url":"https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc"},{"name":"https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","refsource":"MISC","url":"https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4"}]},"source":{"advisory":"e589bd97-4c74-4e79-93b5-0951a281facc","discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-04-06 11:15:00","lastModifiedDate":"2022-04-14 18:10:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*","versionEndIncluding":"5.6.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}