Description
CVE-2018-20834 - High Severity Vulnerability
Vulnerable Library - tar-2.2.1.tgz
tar for node
Library home page: https://registry.npmjs.org/tar/-/tar-2.2.1.tgz
Dependency Hierarchy:
- pillars-0.7.1.tgz (Root Library)
- templated-0.3.9.tgz
- nunjucks-3.1.2.tgz
- chokidar-1.7.0.tgz
- fsevents-1.1.3.tgz
- node-pre-gyp-0.6.39.tgz
- ❌ tar-2.2.1.tgz (Vulnerable Library)
- node-pre-gyp-0.6.39.tgz
- fsevents-1.1.3.tgz
- chokidar-1.7.0.tgz
- nunjucks-3.1.2.tgz
- templated-0.3.9.tgz
Found in HEAD commit: 7c3567c7b8d78dce0fcb947eca5db3cca195eb19
Vulnerability Details
A vulnerability was found in node-tar before version 4.4.2 (excluding version 2.2.2). An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content replaces the existing file content. A patch has been applied to node-tar v2.2.2).
Publish Date: 2019-04-30
URL: CVE-2018-20834
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: High
- Availability Impact: None
Suggested Fix
Type: Change files
Origin: isaacs/node-tar@7ecef07
Release Date: 2019-05-15
Fix Resolution: Replace or update the following files: bad-link.tar, parse.js, link-file-entry-collision.js, package.json, bad-link.hex
Step up your Open Source Security Game with WhiteSource here