PT-2018-1392 · Zip4J · Zip4J

Published

2018-05-31

·

Updated

2022-05-13

·

CVE-2018-1002202

CVSS v2.0

7.5

High

VectorAV:N/AC:L/Au:N/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions zip4j versions prior to 1.3.3
Description The issue is related to a directory traversal vulnerability, also known as 'Zip-Slip', which allows attackers to write to arbitrary files via a ../ (dot dot slash) in a Zip archive entry that is mishandled during extraction. This can be exploited by a remote attacker using a specially crafted zip archive, potentially leading to the execution of arbitrary code. The vulnerability is associated with the incorrect restriction of the directory path name in the extractDir function of the zip4j library.
Recommendations For zip4j versions prior to 1.3.3, update to version 1.3.3 or later to resolve the issue. As a temporary workaround, consider restricting the use of the extractDir function until a patch is available. Avoid using zip archives from untrusted sources to minimize the risk of exploitation.

Exploit

Fix

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2018-00939
CVE-2018-1002202
GHSA-2RPM-4X8C-PVQG
SNYK-JAVA-NETLINGALAZIP4J-31679

Affected Products

Zip4J