cve.bz

CVE-2018-20834 isaacs tar: Link Following

7.5 highExploit referenceEPSS 3.1%Fix available

High (7.5) in isaacs tar. EPSS 3.1% estimated probability of exploitation activity in the next 30 days. Fixed in tar 2.2.2, 4.4.2.

On this page
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

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
3.1% (unchanged from 3.1% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-20834 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-20834?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-20834?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-20834 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
isaacs:tarbefore 2.2.2
isaacs:tarfrom 3.0.0 before 4.4.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j44m-qm6p-hp7mnpmtar>=3.0.0 <4.4.24.4.2
GHSA-j44m-qm6p-hp7mnpmtar<2.2.22.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-tar4.4.4+ds1-2DEBIAN-CVE-2018-20834
Red Hatrhel_software_collections:3::el7rh-nodejs8-nodejs, rh-nodejs8-nodejs-docs, rh-nodejs8-nodejs-devel and 1 more0:8.16.0-1.el7RHSA-2019:1821
Red Hatrhel_software_collections:3::el7rh-nodejs8-npm0:6.4.1-8.16.0.1.el7RHSA-2019:1821

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

In Red Hat OpenShift Logging the openshift-logging/kibana6-rhel8 container bundles many nodejs packages as a build time dependencies, including the tar package.

The vulnerable nodejs tar package is not used in a way that makes this vulnerability exploitable, hence the impact to OpenShift Logging by this vulnerability is Low.

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-nodejs8-nodejs-0:8.16.0-1.el7Fixed 2019-07-22RHSA-2019:1821
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Not affected
Red Hat Enterprise Linux 8nodejs:10/nodejsNot affected
Red Hat Mobile Application Platform 4nodejs-tarNot affected
Red Hat OpenShift Container Platform 3.10kibanaNot affected
Red Hat OpenShift Container Platform 3.11kibanaNot affected
Red Hat OpenShift Container Platform 3.6kibanaNot affected
Red Hat OpenShift Container Platform 3.7kibanaNot affected
Red Hat OpenShift Container Platform 3.9kibanaNot affected
Red Hat OpenShift Container Platform 4kibanaNot affected
Red Hat Software Collectionsrh-nodejs10-nodejsNot affected
Red Hat Software Collectionsrh-nodejs6-nodejs-tarNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-20834.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON