Read the docs
TI-2022-01127 Aliases CVE-2022-1240GHSA-m6g3-mrp2-c625

Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2

Priority LOW 35CWE-122Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-122 and the CVSS impact.

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

Why it matters now

EPSS 0.00737 54th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed radareorg/radare2 (radareorg): 5.8.6

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
radareorgradareorg/radare2before 5.8.65.8.6Patch availableCNA
  • radareorg/radare2 Vendorradareorg Affected before 5.8.6 Fixed in 5.8.6 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*up to 5.6.6Vulnerableradareorg
  • cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:* Versions up to 5.6.6 Vulnerable ·radareorg

Remediation

  • Fix · CNA radareorg/radare2 (radareorg) Fixed in 5.8.6

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-1240
  2. 2026-10-03 Alias added: GHSA-m6g3-mrp2-c625

References

  • TI-2023-25089 An out-of-bounds read in radare2 v.5.8.9 and before exists in the print_insn32 function… CVSS 3.1CRITICAL 9.8
  • TI-2023-25088 An out-of-bounds read in radare2 v.5.8.9 and before exists in the print_insn32_fpu… CVSS 3.1CRITICAL 9.8
  • TI-2021-12172 Radare2 has a division by zero vulnerability in Mach-O parser's rebase_buffer function. CVSS 3.1CRITICAL 10.0
  • TI-2026-07640 radare2 6.1.5 Use-After-Free via gdbr_pids_list() CVSS 4.0HIGH 8.7
  • TI-2026-07639 radare2 6.1.5 Use-After-Free via gdbr_threads_list() CVSS 4.0HIGH 8.7
  • TI-2023-03993 Heap-based Buffer Overflow in radareorg/radare2 CVSS 3.1CRITICAL 9.8
See all 178 →

Sources