5.5
MEDIUM
CVE-2018-20251
WinRAR ACE Format Path Traversal Vulnerability
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.

INFO

Published Date :

Feb. 5, 2019, 8:29 p.m.

Last Modified :

Oct. 9, 2019, 11:39 p.m.

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

CVE-2018-20251 has a 8 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2018-20251 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Rarlab winrar
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2018-20251.

URL Resource
http://www.securityfocus.com/bid/106948 VDB Entry Third Party Advisory
https://research.checkpoint.com/extracting-code-execution-from-winrar/ Exploit Third Party Advisory
https://www.win-rar.com/whatsnew.html Release Notes Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

its fork winafl

CMake C PLpgSQL C++ JavaScript Rich Text Format Python

Updated: 1 year, 8 months ago
1 stars 0 fork 0 watcher
Born at : Feb. 28, 2023, 9:43 a.m. This repo has been linked 165 different CVEs too.

WinAFL modified for RDP client fuzzing

CMake C PLpgSQL C++ JavaScript Rich Text Format Python

Updated: 3 months ago
13 stars 5 fork 5 watcher
Born at : Dec. 18, 2022, 1:13 p.m. This repo has been linked 163 different CVEs too.

None

CMake C HTML JavaScript CSS C++ Perl PLpgSQL Rich Text Format Python

Updated: 1 year, 11 months ago
1 stars 0 fork 0 watcher
Born at : Nov. 23, 2022, 10:57 p.m. This repo has been linked 165 different CVEs too.

None

CMake C PLpgSQL C++ JavaScript Rich Text Format Python

Updated: 1 year, 4 months ago
1 stars 0 fork 0 watcher
Born at : Nov. 10, 2022, 5:15 a.m. This repo has been linked 163 different CVEs too.

None

CMake C PLpgSQL C++ JavaScript Rich Text Format Python

Updated: 4 years ago
0 stars 0 fork 0 watcher
Born at : Nov. 12, 2020, 2:25 a.m. This repo has been linked 132 different CVEs too.

winafl with mopt mutators and afl fast power schedulers.

CMake C PLpgSQL C++ JavaScript Rich Text Format Python

Updated: 1 year, 5 months ago
20 stars 8 fork 8 watcher
Born at : Oct. 24, 2020, 2:12 p.m. This repo has been linked 133 different CVEs too.

Script in PowerShell to detect vulnerable versions of WinRAR (related to ACE files) in a Windows domain.

PowerShell

Updated: 4 years, 10 months ago
0 stars 0 fork 0 watcher
Born at : March 8, 2019, 7:06 a.m. This repo has been linked 4 different CVEs too.

A fork of AFL for fuzzing Windows binaries

fuzzing security afl

CMake C PLpgSQL C++ JavaScript Python Rich Text Format

Updated: 2 months, 2 weeks ago
2310 stars 486 fork 486 watcher
Born at : July 7, 2016, 11:46 a.m. This repo has been linked 165 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2018-20251 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-20251 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Oct. 09, 2019

    Action Type Old Value New Value
    Added CWE Check Point Software Technologies Ltd. CWE-693
  • Modified Analysis by [email protected]

    Mar. 21, 2019

    Action Type Old Value New Value
    Changed Reference Type https://research.checkpoint.com/extracting-code-execution-from-winrar/ No Types Assigned https://research.checkpoint.com/extracting-code-execution-from-winrar/ Exploit, Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/106948 Third Party Advisory http://www.securityfocus.com/bid/106948 Third Party Advisory, VDB Entry
  • CVE Modified by [email protected]

    Mar. 14, 2019

    Action Type Old Value New Value
    Changed Description A validation function (in WinRAR code) is being called before extraction of ACE archives. The validation function inspects the filename field for each compressed file in the ACE archive. In case the filename is disallow by the validator function (for example, the filename contains path traversal patterns) The extraction operation should be aborted and no file or folder should be extracted. However, the check of the return value from the validator function made too late (in UNACEV2.dll), after the creation of files and folders. It prevent the write operation to the extracted files only. 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.
    Added Reference https://research.checkpoint.com/extracting-code-execution-from-winrar/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Feb. 22, 2019

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
    Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
    Changed Reference Type http://www.securityfocus.com/bid/106948 No Types Assigned http://www.securityfocus.com/bid/106948 Third Party Advisory
    Changed Reference Type https://www.win-rar.com/whatsnew.html No Types Assigned https://www.win-rar.com/whatsnew.html Release Notes, Vendor Advisory
    Added CWE CWE-22
    Added CPE Configuration OR *cpe:2.3:a:rarlab:winrar:*:*:*:*:*:*:*:* versions up to (including) 5.61
  • CVE Modified by [email protected]

    Feb. 09, 2019

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/106948 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2018-20251 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2018-20251 weaknesses.

CAPEC-64: Using Slashes and URL Encoding Combined to Bypass Validation Logic Using Slashes and URL Encoding Combined to Bypass Validation Logic CAPEC-76: Manipulating Web Input to File System Calls Manipulating Web Input to File System Calls CAPEC-78: Using Escaped Slashes in Alternate Encoding Using Escaped Slashes in Alternate Encoding CAPEC-79: Using Slashes in Alternate Encoding Using Slashes in Alternate Encoding CAPEC-126: Path Traversal Path Traversal CAPEC-1: Accessing Functionality Not Properly Constrained by ACLs Accessing Functionality Not Properly Constrained by ACLs CAPEC-17: Using Malicious Files Using Malicious Files CAPEC-20: Encryption Brute Forcing Encryption Brute Forcing CAPEC-22: Exploiting Trust in Client Exploiting Trust in Client CAPEC-36: Using Unpublished Interfaces or Functionality Using Unpublished Interfaces or Functionality CAPEC-51: Poison Web Service Registry Poison Web Service Registry CAPEC-57: Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Utilizing REST's Trust in the System Resource to Obtain Sensitive Data CAPEC-59: Session Credential Falsification through Prediction Session Credential Falsification through Prediction CAPEC-65: Sniff Application Code Sniff Application Code CAPEC-74: Manipulating State Manipulating State CAPEC-87: Forceful Browsing Forceful Browsing CAPEC-107: Cross Site Tracing Cross Site Tracing CAPEC-127: Directory Indexing Directory Indexing CAPEC-237: Escaping a Sandbox by Calling Code in Another Language Escaping a Sandbox by Calling Code in Another Language CAPEC-477: Signature Spoofing by Mixing Signed and Unsigned Content Signature Spoofing by Mixing Signed and Unsigned Content CAPEC-480: Escaping Virtualization Escaping Virtualization CAPEC-668: Key Negotiation of Bluetooth Attack (KNOB) Key Negotiation of Bluetooth Attack (KNOB)
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

71.27 }} -3.20%

score

0.98083

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability