Skip to content

Arbitrary File Write in adm-zip

Moderate severity GitHub Reviewed Published Jul 27, 2018 to the GitHub Advisory Database • Updated Sep 12, 2023

Package

npm adm-zip (npm)

Affected versions

< 0.4.11

Patched versions

0.4.11

Description

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.

References

Published to the GitHub Advisory Database Jul 27, 2018
Reviewed Jun 16, 2020
Last updated Sep 12, 2023

Severity

Moderate
5.5
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Weaknesses

CVE ID

CVE-2018-1002204

GHSA ID

GHSA-3v6h-hqm4-2rg6

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.