CVE-2018-1002204: Arbitrary File Write in adm-zip

adm-zip Updated 02 Oct 2025

Summary

27/07/2018
Yes i
Moderate
5.5

CVE-2018-1002204: Arbitrary File Write in adm-zip. Affects adm-zip versions < 0.4.11. Fixed in 0.4.11. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

adm-zip is an npm package that provides a way to create, extract, and modify ZIP archives. It is commonly used in Node.js applications to handle file compression and decompression. However, versions of adm-zip prior to 0.4.9 are vulnerable to an arbitrary file write vulnerability. This vulnerability allows an attacker to write files to arbitrary locations on the file system by exploiting path traversal filenames in a specially crafted archive. For example, an attacker could include a filename like '../../file.txt' to traverse directories and overwrite sensitive files.

Vulnerability Detail

The arbitrary file write vulnerability in adm-zip can have severe consequences. An attacker with the ability to provide a malicious archive file could overwrite critical files on the system, potentially leading to unauthorized access, data loss, or even remote code execution. This vulnerability is classified as CWE-22, which refers to path traversal vulnerabilities. It was first published on July 27, 2018, and has a severity rating of HIGH.

How To Fix

Minimum fixed version

0.4.11

This is the first release that contains the fix.

npm install adm-zip@0.4.11

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The arbitrary file write vulnerability in adm-zip can have serious consequences for applications using vulnerable versions of the package. It is crucial to update adm-zip to version 0.4.9 or later to mitigate the risk of unauthorized file writes. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for adm-zip →

Share this vulnerability

FAQ

adm-zip is an npm package used for handling ZIP archives in Node.js applications.

The vulnerability allows an attacker to write files to arbitrary locations on the file system, potentially leading to unauthorized access, data loss, or remote code execution.

Updating adm-zip to version 0.4.9 or later will fix the vulnerability.

No specific workaround is mentioned for this vulnerability. Updating the package is the recommended solution.

The vulnerability was first published in 2018, and there is no information available regarding active exploitation. However, it is always recommended to apply security updates as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for adm-zip.

How To Fix

Minimum fixed version

0.4.11

This is the first release that contains the fix.

npm install adm-zip@0.4.11

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback