CVE-2022-23596: Junrar vulnerable to infinite loop via extracting carefully crafted RAR archive
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.57457%
CWE
Published
2/1/2022
Updated
1/30/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
com.github.junrar:junrar | maven | < 7.4.1 | 7.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows a critical null-check addition in Archive.java's readHeaders method when handling SubBlockHeader types. Prior to the patch, a null subType would bypass the switch statement but not terminate header processing, causing an infinite loop. The vulnerability is directly tied to this missing null check, as confirmed by the CWE-835 classification and the test case added in the patch (loop.rar). The infinite loop occurs during header parsing, making readHeaders the clear vulnerable entry point.