CVE-2018-1002204 json
Arbitrary File Write in adm-zip
published 2018-07-25 8 y ago modified 2026-06-17 4 mo 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
- github.com/cthackers/adm-zip@62f6400 commit
- github.com/cthackers/adm-zip#212 pull request
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-zipaffected: no fix available
-
Red Hat Quay 3 quay/quay-rhel8affected: 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-08).
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
-
github.com
/cthackers/adm-zip/pull/212
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/cthackers/adm-zip/commit/62f64004fefb894c523a7143e8a88ebe6c84df25
web, issue-tracking, patch, third-party-advisory
-
snyk.io
/research/zip-slip-vulnerability
web, exploit, third-party-advisory
-
github.com
/snyk/zip-slip-vulnerability
web, exploit, third-party-advisory
-
snyk.io
/vuln/npm:adm-zip:20180415
web, exploit, third-party-advisory
-
securityfocus.com
/bid/107001
vdb-entry, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-1002204
advisory
-
hackerone.com
/reports/362118
web
-
github.com
/advisories/GHSA-3v6h-hqm4-2rg6
advisory
-
npmjs.com
/advisories/681
web
-
npmjs.com
/advisories/994
web
Sources
- CVE List CVE-2018-1002204
- GitHub Advisory GHSA-3v6h-hqm4-2rg6
- NVD CVE-2018-1002204
Fencer Vulns 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.