CVE-2023-40022

Rizin vulnerable to Integer Overflow in C++ demangler logic

Description

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`.

Category

7.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.06%
Vendor Advisory github.com
Affected: rizinorg rizin
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-40022?
CVE-2023-40022 has been scored as a high severity vulnerability.
How to fix CVE-2023-40022?
To fix CVE-2023-40022, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-40022 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-40022 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-40022?
CVE-2023-40022 affects rizinorg rizin.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.