Home / Isaacs / Tar / CVE-2018-20834
CVE-2018-20834: is it exploited, and which versions of Isaacs Tar are affected and fixed?
CVE-2018-20834 is a link following (a symlink lets an attacker reach other files) vulnerability in Isaacs Tar. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: tar from 3.0.0 before 4.4.2 and tar before 2.2.2 (GitHub advisory GHSA-j44m-qm6p-hp7m). Fixed in 4.4.2 and 2.2.2 (GitHub advisory GHSA-j44m-qm6p-hp7m). Severity: High (7.5, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:23 UTC.
What is CVE-2018-20834?
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).
From the CVE record by mitre, last updated August 5, 2024, 12:12 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | tar | >= 3.0.0, < 4.4.2 | 4.4.2 | GHSA-j44m-qm6p-hp7m |
| npm | tar | < 2.2.2 | 2.2.2 | GHSA-j44m-qm6p-hp7m |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 29, 2023. Summary: Arbitrary File Overwrite in tar.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| isaacs | tar | before 2.2.2 | application |
| isaacs | tar | from 3.0.0 before 4.4.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:53 UTC.
How severe is CVE-2018-20834?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD |
| Medium 6.4 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-20834 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.15% probability of exploitation activity in the next 30 days, percentile 88.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-59 Improper Link Resolution Before File Access
Where are the vendor advisories and references?
- https://hackerone.com/reports/344595 x_refsource_MISC
- https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8 x_refsource_MISC
- https://github.com/npm/node-tar/compare/58a8d43...a5f7779 x_refsource_MISC
- RHSA-2019:1821 vendor-advisory, x_refsource_REDHAT
- https://nvd.nist.gov/vuln/detail/CVE-2018-20834 x_refsource_MISC
- https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d x_refsource_MISC
- https://github.com/npm/node-tar/commits/v2.2.2 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 30, 2019
- Published
- April 30, 2019, 18:01 UTC
- CVE record updated
- August 5, 2024, 12:12 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:53 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:23 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2018-20834
Is CVE-2018-20834 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 3.15% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Isaacs Tar are affected by CVE-2018-20834?
tar from 3.0.0 before 4.4.2 and tar before 2.2.2, per the GitHub advisory GHSA-j44m-qm6p-hp7m. The tables above give every range the sources list.
Which version fixes CVE-2018-20834?
4.4.2 and 2.2.2, per the GitHub advisory GHSA-j44m-qm6p-hp7m. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-20834?
High (7.5, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-20834?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.