Buffer overflow in Radare Radare2

CVE-2022-1240

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).

Vulnerability class: Buffer Overflow

EPSS: 0.007 (50.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-1240?
CVE-2022-1240 is a high-severity vulnerability in Radare Radare2, classified under Heap-based Buffer Overflow. CVSS score: 7.8/10. Published 2022-04-06.
How severe is CVE-2022-1240?
High severity. CVSS v3 base score is 7.8 out of 10.