High severity · published Apr 6, 2022
CVE-2022-1240
Heap buffer overflow in libr/bin/format/mach0/mach0.c in GitHub repository radareorg/radare2 prior to 5.8.6
7.8
CVSS
0.7%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 54% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RA
Radare2 · Radare
through 5.6.6 · source: NVD
Affected product
RA
Radare2
Radare
More from Radare2
9.8
CVE-2026-8696
radare2 6.1.5 Use-After-Free via gdbr_pids_list()
9.8
CVE-2026-8695
radare2 6.1.5 Use-After-Free via gdbr_threads_list()
9.8
CVE-2025-1864
Buffer Overflow and Potential Code Execution in Radare2
9.8
CVE-2025-1744
Out-of-bounds Write in radare2
9.8
CVE-2024-29646
Buffer Overflow vulnerability in radarorg radare2 v.5.8.8 allows an attacker to execute arbitrary code via the name, type, or group fields