Home / rizinorg / rizin / CVE-2023-40022
CVE-2023-40022: is it exploited, and which versions of rizinorg rizin are affected and fixed?
CVE-2023-40022 is an integer overflow vulnerability in rizinorg rizin. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: rizin < 0.6.1 (CVE record by GitHub_M). Fixed in 0.6.1 (NVD). Severity: High (7.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:36 UTC.
What is CVE-2023-40022?
Rizin vulnerable to Integer Overflow in C++ demangler logic
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`.
From the CVE record by GitHub_M, last updated October 2, 2024, 18:11 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| rizinorg | rizin | < 0.6.1 |
As the CVE record by GitHub_M states it, last updated October 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| rizin | rizin | before 0.6.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:15 UTC.
How severe is CVE-2023-40022?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | GitHub_M |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-40022 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, October 2, 2024)
- EPSS
- 0.29% probability of exploitation activity in the next 30 days, percentile 23.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://github.com/rizinorg/rizin/security/advisories/GHSA-92h6-wwc2-53cq x_refsource_CONFIRM
- https://github.com/rizinorg/rizin/pull/3753 x_refsource_MISC
- https://github.com/rizinorg/rz-libdemangle/pull/54 x_refsource_MISC
- https://github.com/rizinorg/rz-libdemangle/commit/51d016750e704b27ab8ace23c0f72acabca67018 x_refsource_MISC
- https://github.com/rizinorg/rz-libdemangle/blob/main/src/gnu_v2/cplus-dem.c#L419 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 8, 2023
- Published
- August 24, 2023, 22:50 UTC
- CVE record updated
- October 2, 2024, 18:11 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:15 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:36 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect rizin?
- May 29, 2026CVE-2026-45324 rizinorg rizin: double free
- May 29, 2026CVE-2026-45613 rizinorg rizin: out-of-bounds read
- Feb 2, 2026CVE-2026-22780 rizinorg rizin: denial of service (resources allocated without limits)
- Mar 1, 2025CVE-2025-1788 rizinorg rizin: heap buffer overflow
- Mar 1, 2025CVE-2025-1786 rizinorg rizin: buffer overflow
- Dec 23, 2024CVE-2024-53256 rizinorg rizin: OS command injection
- Mar 14, 2023CVE-2023-27590 rizinorg rizin: stack buffer overflow
- Sep 6, 2022CVE-2022-36039 rizinorg rizin: out-of-bounds write (memory corruption)
Questions about CVE-2023-40022
Is CVE-2023-40022 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.29% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of rizinorg rizin are affected by CVE-2023-40022?
rizin < 0.6.1, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2023-40022?
0.6.1, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-40022?
High (7.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-40022?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.