Rizin vulnerable to Integer Overflow in C++ demangler logic
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-190 and the CVSS impact.
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`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA rizin (rizinorg) Fixed in 0.6.1
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-40022
References
Patch 4
More rizinorg Rizin vulnerabilities
- TI-2021-02614 Memory corruption in rizin CVSS 3.1HIGH 7.8
- TI-2025-01540 rizinorg rizin utf8.c rz_utf8_encode heap-based overflow CVSS 4.0MEDIUM 4.8
- TI-2025-01538 rizinorg rizin pdb.c msf_stream_directory_free buffer overflow CVSS 4.0MEDIUM 4.8
- TI-2024-20906 rizin before v0.6.3 is vulnerable to Improper Neutralization of Special Elements via… CVSS 3.1CRITICAL 9.1
- TI-2024-20907 rizin before Release v0.6.3 is vulnerable to Uncontrolled Resource Consumption via… CVSS 3.1HIGH 7.5
- TI-2023-12300 Rizin has stack-based buffer overflow when parsing GDB registers profile files CVSS 3.1HIGH 7.8
Sources
- CVE-2023-40022 · CVE Program
- CVE-2023-40022 · NVD
- FIRST EPSS
- CVE-2023-40022 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences