CVE-2022-1240

HIGH

Radare2 < 5.6.6 - Out-of-Bounds Write

Title source: rule
STIX 2.1

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

References (2)

Core 2
Core References
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_confirm
https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc

Scores

CVSS v3 7.8
EPSS 0.0024
EPSS Percentile 47.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-122 CWE-787
Status published
Products (1)
radare/radare2 < 5.6.6
Published Apr 06, 2022
Tracked Since Feb 18, 2026