---
cve: "CVE-2022-1240"
severity: "HIGH"
cvss: 7.6
epss: "74%"
vendor: "radareorg"
kev: false
exploited: false
published: "2022-04-06 11:15:07"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-16T12:48:19+02:00"
---

# CVE-2022-1240

> 7.6 HIGH · 🧪 PoC

## Beschreibung

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-Vektor

```
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Erforderlich | good |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Gering | warn |
| I Integrität | Gering | warn |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- ca8d8b39f3e34a4fd943270330b80f1148129de4 (Commit)

## Referenzen

- <https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc>
- <https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2022-1240) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
