Rizin up to 0.6.0 src/gnu_v2/cplus-dem.c consume_count integer overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.4 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, has been found in Rizin up to 0.6.0. This impacts the function consume_count of the file src/gnu_v2/cplus-dem.c. The manipulation leads to integer overflow.
This vulnerability is uniquely identified as CVE-2023-40022. Local access is required to approach this attack. No exploit exists.
It is advisable to upgrade the affected component.
Details
A vulnerability, which was classified as problematic, has been found in Rizin up to 0.6.0. This issue affects the function consume_count of the file src/gnu_v2/cplus-dem.c. The manipulation with an unknown input leads to a integer overflow vulnerability. Using CWE to declare the problem leads to CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
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`.
The weakness was disclosed 08/25/2023 as GHSA-92h6-wwc2-53cq. The advisory is shared at github.com. The identification of this vulnerability is CVE-2023-40022 since 08/08/2023. Technical details are known, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 216954 (Fedora 40 : cutter-re / rizin (2025-6f77f6c77a)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 0.6.1 eliminates this vulnerability. Applying the patch 51d016750e704b27ab8ace23c0f72acabca67018 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at Tenable (216954). If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 6.4
VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 7.8
CNA Vector (GitHub, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Integer overflowCWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Partially
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 216954
Nessus Name: Fedora 40 : cutter-re / rizin (2025-6f77f6c77a)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Rizin 0.6.1
Patch: 51d016750e704b27ab8ace23c0f72acabca67018
Timeline
08/08/2023 🔍08/25/2023 🔍
08/25/2023 🔍
03/01/2025 🔍
Sources
Advisory: GHSA-92h6-wwc2-53cqStatus: Confirmed
CVE: CVE-2023-40022 (🔍)
GCVE (CVE): GCVE-0-2023-40022
GCVE (VulDB): GCVE-100-237917
Entry
Created: 08/25/2023 06:49Updated: 03/01/2025 11:24
Changes: 08/25/2023 06:49 (52), 03/01/2025 11:24 (17)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.