CVE-2018-20834

nodejs-tar: Arbitrary file overwrites when extracting tarballs containing a hard-link

Published Apr 30, 2019 CVSS 3.0 · 7.5 High EPSS 3.1% KEV · Not listed
Description
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2019-0468 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).
Github GHSA Github GHSA GHSA-j44m-qm6p-hp7m Arbitrary File Overwrite in tar
History
Type Values Removed Values Added
First Time appeared Isaacs
Isaacs tar
CPEs cpe:2.3:a:node-tar_project:node-tar:*:*:*:*:*:*:*:* cpe:2.3:a:isaacs:tar:*:*:*:*:*:*:*:*
Vendors & Products Node-tar Project
Node-tar Project node-tar
Isaacs
Isaacs tar
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 12:12 PM
Reserved
Apr 30, 2019, 12:00 AM
Status
Modified
Published
Apr 30, 2019, 7:29 PM
Modified
Jun 17, 2026, 1:53 AM
Severity
Important
Public date
Apr 30, 2018, 12:00 AM