CVE-2018-20834

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).

Severity
HIGH
CVSS v3
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N · source nvd
Exploit chance (EPSS)
3.145%
chance of exploitation in the next 30 days
higher than 88.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2019-04-30Published by the CNA18:01 UTC
  2. 2019-05-01GitHub advisory published (GHSA-j44m-qm6p-hp7m)1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-j44m-qm6p-hp7m, affected packages:

PackageVulnerable versionsFixed in
npm tarbefore 2.2.22.2.2
npm tarfrom 3.0.0 before 4.4.24.4.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
isaacs tarbefore 2.2.2fixed in 2.2.2from 3.0.0 before 4.4.2fixed in 4.4.22.2.24.4.2

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources