CVE-2022-1240

    Dashboard / Vulnerabilities / CVE-2022-1240

    CVE-2022-1240

    Published: 6 Apr 2022Last Modified: 12 Aug 2026

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

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

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    5.6.6
    5.6.4
    5.6.2
    5.6.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2022-1240 | CVE-DB