CVE-2022-1240 json
Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2
published 2022-04-06 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-24575
- cvss
- 7.6
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
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).
Patch / fix
- radareorg radareorg/radare2 5.8.6
- radare2 openSUSE Tumbleweed 5.7.0-1.1
opensuse advisories openSUSE-SU-2024:12173-1
- radare2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 5.6.6-r0
alpine advisories ALPINE-CVE-2022-1240
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-1240 updated cvss 7.6
radare2: heap buffer overflow in libr/bin/format/mach0/mach0.c
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.74% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected products
- radareorg radareorg/radare2
Classification
References
-
github.com
/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4
patch, third-party-advisory
-
huntr.dev
/bounties/e589bd97-4c74-4e79-93b5-0951a281facc
exploit, issue-tracking, patch, third-party-advisory
Sources
- CVE List CVE-2022-1240
- NVD CVE-2022-1240
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.