PT-2018-1391 · Node.Js · Adm-Zip

Aviadatsnyk

·

Published

2018-07-25

·

Updated

2019-10-16

·

CVE-2018-1002204

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 adm-zip versions prior to 0.4.9
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 archive, potentially leading to arbitrary code execution. The vulnerability is due to incorrect restriction of the directory path name in the extractDir function of the Adm-zip library for Node.js.
Recommendations Update to version 0.4.9 or later. As a temporary workaround, consider restricting the use of the extractDir function until a patch is available. Avoid using the adm-zip library to extract archives from untrusted sources until the issue is resolved.

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-00938
CVE-2018-1002204
GHSA-3V6H-HQM4-2RG6

Affected Products

Adm-Zip