7.8

CVE-2022-1240: radare radare2 Heap-based Buffer Overflow

CVSS: 7.8v3.1HighModified
AliasesUBUNTU-CVE-2022-1240
Published 06-04-2022Last modified 02-08-2024

Vulnerability summary

CVE-2022-1240 is a high (CVSS 7.8) Heap-based Buffer Overflow vulnerability in radare radare2. EPSS estimates a 0.74% chance of exploitation in the next 30 days, higher than 53.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
41/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.74%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 06-04-2022
    PublishedVulnerability first disclosed.
  2. 02-08-2024
    Last modifiedVulnerability information updated.

Description

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 metrics

6 scores · 3 sources · 3 versions

EPSS trend

Probability

0.74%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

0.00 pp

From 0.74% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.74%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.dev)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Radare1 product
Radareorg1 product
Ubuntu1 product
  • radare2All versions (No fix recorded)

3 vendors · 3 products

References

4 links