CVE-2023-40022 json
Rizin vulnerable to Integer Overflow in C++ demangler logic
published 2023-08-24 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-44641
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.6.0 and prior are vulnerable to integer overflow in `consume_count` of `src/gnu_v2/cplus-dem.c`. The overflow check is valid logic but, is missing the modulus if the block once compiled. The compiler sees this block as unreachable code since the prior statement is multiplication by 10 and fails to consider overflow assuming the count will always be a multiple of 10. Rizin version 0.6.1 contains a fix for the issue. A temporary workaround would be disabling C++ demangling using the configuration option `bin.demangle=false`.
Patch / fix
- rizin rizin 0.6.1
- github.com/rizinorg/rz-libdemangle@51d0167 commit
- github.com/rizinorg/rizin#3753 pull request
- github.com/rizinorg/rz-libdemangle#54 pull request
- github.com/rizinorg/rizin/security/advisories/GHSA-92h6-wwc2-53cq advisory
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-2023-40022 updated cvss 7.3
rizin: Integer Overflow in C++ demangler logic
-
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
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/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 |
Affected products
- rizinorg rizin
- rizin rizin
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/rizinorg/rizin/pull/3753
patch
-
github.com
/rizinorg/rz-libdemangle/pull/54
patch
-
github.com
/rizinorg/rz-libdemangle/commit/51d016750e704b27ab8ace23c0f72acabca67018
patch
-
github.com
/rizinorg/rizin/security/advisories/GHSA-92h6-wwc2-53cq
patch, vendor-advisory
-
github.com
/rizinorg/rz-libdemangle/blob/main/src/gnu_v2/cplus-dem.c#L419
product
Sources
- CVE List CVE-2023-40022
- NVD CVE-2023-40022
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.