CVE-2018-20251 Path traversal in WinRAR

Medium 5.5 Published Updated

Attackers can create arbitrary empty files and folders outside the intended extraction directory via crafted ACE archives in WinRAR.

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
None listed

What is CVE-2018-20251?

CVE-2018-20251 is a medium-severity path traversal vulnerability in Check Point Software Technologies Ltd. WinRAR, published on 5 Feb 2019. 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

In WinRAR versions prior to and including 5.61, there is path traversal vulnerability when crafting the filename field of the ACE format. The UNACE module (UNACEV2.dll) creates files and folders as written in the filename field even when WinRAR validator noticed the traversal attempt and requestd to abort the extraction process. the operation is cancelled only after the folders and files were created but prior to them being written, therefore allowing the attacker to create empty files and folders everywhere in the file system.

Weakness: CWE-22, CWE-693

Which versions are affected by CVE-2018-20251?

It affects 1 product.

Products include Rarlab Winrar.

How do I fix CVE-2018-20251?

No fix has been published for CVE-2018-20251 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-20251 being exploited?

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

Sources

Also known as GHSA-9p46-rmhc-6xcf.

Is CVE-2018-20251 in your software?

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

Check your SBOMs for free