Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1584400 - (CVE-2018-1002204) CVE-2018-1002204 nodejs-adm-zip: arbitrary file write vulnerability / arbitrary code execution using a specially crafted zip file
CVE-2018-1002204 nodejs-adm-zip: arbitrary file write vulnerability / arbitra...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20150108,repor...
: Security
Depends On:
Blocks: 1584402
  Show dependency treegraph
 
Reported: 2018-05-30 15:45 EDT by Laura Pardo
Modified: 2018-06-06 09:37 EDT (History)
11 users (show)

See Also:
Fixed In Version: nodejs-adm-zip 0.4.9
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Laura Pardo 2018-05-30 15:45:50 EDT
A vulnerability has been found in the way developers have implemented the archive extraction of files. An arbitrary file write vulnerability, that can be achieved using a specially crafted zip archive (affects other archives as well, bzip2, tar,xz, war, cpio, 7z), that holds path traversal filenames. So when the filename gets concatenated to the target extraction directory, the final path ends up outside of the target folder. Of course if an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily. This affects multiple libraries that lacks of a high level APIs that provide the archive extraction functionality. 


References:

https://github.com/cthackers/adm-zip/pull/212
https://github.com/cthackers/adm-zip/commit/6f4dfeb9a2166e93207443879988f97d88a37cde

https://github.com/cthackers/adm-zip/pull/215
https://github.com/cthackers/adm-zip/commit/ce59e5a05a0dc1e31ca2f4ae43ae8d50a2f0920a

https://github.com/cthackers/adm-zip/issues/176
https://github.com/cthackers/adm-zip/commit/3f00a03ff55a1e1643b690a67fbe164e9ed7f48a
Comment 2 Jason Shepherd 2018-05-31 23:23:23 EDT
Statement:

While Red Hat Mobile Application Platform (RHMAP) does include the vulnerable library, it does not use the vulnerable methods extract* fixed in the library, [1]. RHMAP upgrade the vulnerable library in a future version.

[1] https://github.com/cthackers/adm-zip/commit/6f4dfeb9a2166e93207443879988f97d88a37cde
Comment 5 Tomas Hoger 2018-06-01 05:43:21 EDT
Public now via:

https://snyk.io/vuln/npm:adm-zip:20180415

Note You need to log in before you can comment on or make changes to this bug.