MEDIUM5.5
GHSA-3v6h-hqm4-2rg6
Arbitrary File Write in adm-zip
Quick fix
GHSA-3v6h-hqm4-2rg6 — adm-zip: upgrade to the fixed version with the command below.
npm install adm-zip@0.4.11Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
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]