GitHub Advisoryadvisory · npm

GHSA-3v6h-hqm4-2rg6 Arbitrary File Write in adm-zip

MEDIUM Published 2018-07-27 Modified 2023-09-12 Official page ↗
Aliases
CVE-2018-1002204
Ecosystem
npm
Packages
adm-zip
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2020-06-16

Affected packages

• npm adm-zip: < 0.4.11 → fixed in 0.4.11

Description

Versions of `adm-zip` before 0.4.9 are vulnerable to arbitrary file write when used to extract a specifically crafted archive that contains path traversal filenames (`../../file.txt` for example). Recommendation Update to version 0.4.9 or later.

Related

Alias · CVE (1)

  • CVE-2018-1002204 adm-zip npm library before 0.4.9 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References