Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. adm-zip
  4. ›
  5. CVE-2018-1002204

CVE-2018-1002204: Path Traversal

July 25, 2018 (updated October 16, 2019)

The adm-zip npm library is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ in a Zip archive entry that is mishandled during extraction.

References

  • www.securityfocus.com/bid/107001
  • github.com/cthackers/adm-zip/commit/62f64004fefb894c523a7143e8a88ebe6c84df25
  • github.com/cthackers/adm-zip/pull/212
  • nvd.nist.gov/vuln/detail/CVE-2018-1002204

Code Behaviors & Features

Detect and mitigate CVE-2018-1002204 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.9

Fixed versions

  • 0.4.9

Solution

Upgrade to version 0.4.9 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/adm-zip/CVE-2018-1002204.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:43 +0000.