Skip to content
Fencer Intel
medium 5.5

CVE-2018-1002204 json

Arbitrary File Write in adm-zip

published 8y ago modified 4mo ago also GHSA-3v6h-hqm4-2rg6 , EUVD-2018-0219

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
13.5%
EPSS 13.5% chance of exploitation in 30 days, percentile 96%
public exploits
0
none known

Summary

adm-zip npm library before 0.4.9 is vulnerable to directory traversal, allowing attackers to write to arbitrary files via a ../ (dot dot slash) in a Zip archive entry that is mishandled during extraction. This vulnerability is also known as 'Zip-Slip'.

Patch / fix

  • npm adm-zip 0.4.11
  • node.js adm-zip 0.4.9

Is CVE-2018-1002204 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-1002204 updated cvss 5.3

nodejs-adm-zip: arbitrary file write vulnerability / arbitrary code execution using a specially crafted zip file

  • Red Hat Mobile Application Platform 4 nodejs-adm-zip
    affected: no fix available
  • Red Hat Quay 3 quay/quay-rhel8
    affected: no fix available “Fix deferred”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

13.45% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/cthackers/adm-zip/pull/212 referenced PoC, tagged "exploit" by a source, unverified
  • snyk.io https://snyk.io/research/zip-slip-vulnerability referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/snyk/zip-slip-vulnerability referenced PoC, tagged "exploit" by a source, unverified
  • snyk.io https://snyk.io/vuln/npm:adm-zip:20180415 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N
GitHub 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
npm adm-zip
<0.4.11
0.4.11

Affected products

  • node.js adm-zip

Classification

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

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.