Path traversal in zip4j - CVE-2018-1002202

 

Path traversal in zip4j - CVE-2018-1002202

Published: July 30, 2018 / Updated: July 31, 2018


Vulnerability identifier: #VU14134
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2018-1002202
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Srikanth Reddy Lingala
Affected software:
zip4j

Detailed vulnerability description

The vulnerability allows a remote attacker to conduct a directory traversal attack on the target system.

The vulnerability exists in the extractDir() function of QuaZIP due to improper validation of files inside an archive file. A remote unauthenticated attacker can trick the victim into extracting an archive file that contains a file using directory traversal characters, and cause the service to crash or execute arbitrary code with elevated privileges.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Note: This vulnerability is also known as 'Zip-Slip'.


How to mitigate CVE-2018-1002202

Update to version 1.3.3.

Sources