CVE-2018-12418 Junrar vulnerable to Infinite Loop

Medium 5.5 Published Updated

An attacker can cause a denial of service via an infinite loop in the Junrar library when processing corrupt RAR files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-12418?

CVE-2018-12418 is a medium-severity denial of service vulnerability in n/a, published on 14 Jun 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Archive.java in Junrar before 1.0.1, as used in Apache Tika and other products, is affected by a denial of service vulnerability due to an infinite loop when handling corrupt RAR files.

Weakness: CWE-835

Which versions are affected by CVE-2018-12418?

2 open source packages ship an affected version, including com.github.junrar:junrar. It affects 1 product.

PackageAffectedFixed in
com.github.junrar:junrar MavenAll versions1.0.1
com.github.junrar:junrar MavenAll versions1.0.1

Products include Junrar Project Junrar.

How do I fix CVE-2018-12418?

Upgrade com.github.junrar:junrar to 1.0.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-12418 being exploited?

There is no known exploitation of CVE-2018-12418 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as ECHO-dcdc-4fd6-a372, GHSA-5xqr-grq4-qwgx.

Is CVE-2018-12418 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free