CVE-2022-1240
Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.6
Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2
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.
- Record
CVE-2022-1240- CVSS 3.0
- 7.6 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H - Weakness
- CWE-122
- Updated
- 2026-11-02
EUVDEUVD-2022-24575
7.6
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.
- Record
EUVD-2022-24575- CVSS 3.0
- 7.6 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m6g3-mrp2-c625
7.8
Heap buffer overflow in libr/bin/format/mach0/mach0.c in GitHub repository radareorg/radare2...
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.
- Record
GHSA-m6g3-mrp2-c625- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
NVD
7.8
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.
- Record
CVE-2022-1240- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.6 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-1240
7.8
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.
- Record
ALPINE-CVE-2022-1240- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV
7.6
Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2
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.
- Record
CVE-2022-1240- CVSS 3.0
- 7.6 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H - Weakness
- CWE-122
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-1240
7.8
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.
- Record
UBUNTU-CVE-2022-1240- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.6 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12173-1 No score
radare2-5.7.0-1.1 on GA media
These are all security issues fixed in the radare2-5.7.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12173-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
radare2Alpine:v3.18 |
before 5.6.6-r0 | 5.6.6-r0 |
radare2Alpine:v3.19 |
before 5.6.6-r0 | 5.6.6-r0 |
radare2Alpine:v3.20 |
before 5.6.6-r0 | 5.6.6-r0 |
radare2Alpine:v3.21 |
before 5.6.6-r0 | 5.6.6-r0 |
radare2Alpine:v3.22 |
before 5.6.6-r0 | 5.6.6-r0 |
radare2Alpine:v3.23 |
before 5.6.6-r0 | 5.6.6-r0 |
radare2Alpine:v3.24 |
before 5.6.6-r0 | 5.6.6-r0 |
radare2Ubuntu:16.04:LTS |
All versions, plus listed versions 0.9.6-3.1ubuntu1 |
None known |
radare2Ubuntu:Pro:18.04:LTS |
All versions, plus listed versions 1.6.0+dfsg-12.0.0+dfsg-12.1.0+dfsg-12.3.0+dfsg-12.3.0+dfsg-22.3.0+dfsg-2ubuntu0.1~esm1 |
None known |
radare2Ubuntu:Pro:20.04:LTS |
All versions, plus listed versions 3.2.1+dfsg-5build14.0.0+dfsg-14.2.1+dfsg-14.2.1+dfsg-24.2.1+dfsg-2ubuntu0.1~esm1 |
None known |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
radare2Ubuntu:Pro:24.04:LTS |
All versions, plus listed versions 5.5.0+dfsg-1ubuntu15.5.0+dfsg-1.1ubuntu25.5.0+dfsg-1.1ubuntu35.5.0+dfsg-1.1ubuntu3+esm1 |
None known |
radare2Ubuntu:25.10 |
All versions, plus listed versions 5.9.8+dfsg-25.9.8+dfsg-2ubuntu0.25.10.15.9.8+dfsg-2ubuntu0.25.10.2 |
None known |
radare2Ubuntu:26.10 |
All versions, plus listed versions 6.0.7+ds-16.1.6+ds-26.1.6+ds-36.1.8+ds-1 |
None known |
radare2Ubuntu:26.04:LTS |
All versions, plus listed versions 5.9.8+dfsg-26.0.4+dfsg-16.0.7+ds-1 |
None known |
radare2openSUSE:Tumbleweed From an advisory covering 38 CVEs |
before 5.7.0-1.1 | 5.7.0-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-1240 is a high vulnerability (CVSS 7.6) in Radare Radare2, published April 6, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.74%, the 54th percentile. Fixed in radare2 5.6.6-r0.
References
huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc
github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4
nvd.nist.gov/vuln/detail/CVE-2022-1240
github.com/advisories/GHSA-m6g3-mrp2-c625
security.alpinelinux.org/vuln/CVE-2022-1240
github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1240.json
Show 40 moreShow less
ubuntu.com/security/CVE-2022-1240
cve.org/CVERecord?id=CVE-2022-1240
suse.com/security/cve/CVE-2022-0139
suse.com/security/cve/CVE-2022-0173
suse.com/security/cve/CVE-2022-0419
suse.com/security/cve/CVE-2022-0476
suse.com/security/cve/CVE-2022-0518
suse.com/security/cve/CVE-2022-0519
suse.com/security/cve/CVE-2022-0520
suse.com/security/cve/CVE-2022-0521
suse.com/security/cve/CVE-2022-0522
suse.com/security/cve/CVE-2022-0523
suse.com/security/cve/CVE-2022-0559
suse.com/security/cve/CVE-2022-0676
suse.com/security/cve/CVE-2022-0695
suse.com/security/cve/CVE-2022-0712
suse.com/security/cve/CVE-2022-0713
suse.com/security/cve/CVE-2022-0849
suse.com/security/cve/CVE-2022-1031
suse.com/security/cve/CVE-2022-1052
suse.com/security/cve/CVE-2022-1061
suse.com/security/cve/CVE-2022-1207
suse.com/security/cve/CVE-2022-1237
suse.com/security/cve/CVE-2022-1238
suse.com/security/cve/CVE-2022-1240
suse.com/security/cve/CVE-2022-1244
suse.com/security/cve/CVE-2022-1283
suse.com/security/cve/CVE-2022-1284
suse.com/security/cve/CVE-2022-1296
suse.com/security/cve/CVE-2022-1297
suse.com/security/cve/CVE-2022-1382
suse.com/security/cve/CVE-2022-1383
suse.com/security/cve/CVE-2022-1437
suse.com/security/cve/CVE-2022-1444
suse.com/security/cve/CVE-2022-1451
suse.com/security/cve/CVE-2022-1452
suse.com/security/cve/CVE-2022-1649
suse.com/security/cve/CVE-2022-1714
suse.com/security/cve/CVE-2022-1809
suse.com/security/cve/CVE-2022-1899