CVE-2022-23596: Junrar Vulnerable to Infinite Loop via Extracting Crafted RAR Archive

com.github.junrar:junrar Updated 02 Oct 2025

Summary

01/02/2022
Yes i
High
7.5

CVE-2022-23596: Junrar vulnerable to infinite loop via extracting carefully crafted RAR archive. Affects com.github.junrar:junrar versions < 7.4.1. Fixed in 7.4.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Junrar is a Java library that provides functionality for extracting files from RAR archives. It is commonly used in applications that handle compressed files. The library allows users to extract files from RAR archives, but a vulnerability has been discovered that can lead to an infinite loop when extracting a carefully crafted RAR archive.

Vulnerability Detail

The vulnerability in Junrar arises from a flaw in the library's handling of certain RAR archives. An attacker can create a specially crafted RAR archive that triggers an infinite loop during the extraction process. The impact of this vulnerability depends on how the application using Junrar handles extracted files and whether malicious users can provide the RAR archives. If an application is vulnerable and processes malicious RAR archives, it may enter an infinite loop, causing denial of service or resource exhaustion. The vulnerability has been assigned a CVSS score of 7.5, indicating a high severity level.

How To Fix

Latest published version: 8.1.2 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.4.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are no known workarounds for this vulnerability. The only effective solution is to update the Junrar library to a patched version.

Conclusion

Junrar is vulnerable to an infinite loop vulnerability when extracting carefully crafted RAR archives. The impact of this vulnerability depends on the application's usage of Junrar and the ability of malicious users to provide RAR archives. It is crucial to update the Junrar library to version 7.4.1 or later to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.github.junrar:junrar →

Share this vulnerability

FAQ

Junrar is a Java library that provides functionality for extracting files from RAR archives.

The impact depends on how the application using Junrar handles extracted files and whether malicious RAR archives can be provided. If an application is vulnerable and processes malicious RAR archives, it may enter an infinite loop, causing denial of service or resource exhaustion.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

To fix the vulnerability, update the Junrar library to version 7.4.1 or later.

No, there are no known workarounds for this vulnerability. Updating the Junrar library to a patched version is the only effective solution.

Related vulnerabilities

Recent vulnerabilities recorded for com.github.junrar:junrar.

How To Fix

Latest published version: 8.1.2 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.4.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback