GitHub Advisoryadvisory · npm
GHSA-3v6h-hqm4-2rg6 Arbitrary File Write in adm-zip
MEDIUM
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
- https://nvd.nist.gov/vuln/detail/CVE-2018-1002204 advisory
- https://github.com/cthackers/adm-zip/pull/212 web
- https://github.com/cthackers/adm-zip/commit/62f64004fefb894c523a7143e8a88ebe6c84df25 web
- https://hackerone.com/reports/362118 web
- https://github.com/advisories/GHSA-3v6h-hqm4-2rg6 advisory
- https://github.com/snyk/zip-slip-vulnerability web
- https://snyk.io/research/zip-slip-vulnerability web
- https://snyk.io/vuln/npm:adm-zip:20180415 web
- https://www.npmjs.com/advisories/681 web
- https://www.npmjs.com/advisories/994 web
- http://www.securityfocus.com/bid/107001 web