{"id":"CVE-2018-20834","published":"2019-04-30T18:01:58Z","modified":"2024-08-05T12:12:27Z","title":"A vulnerability was found in node-tar before version 4.4.2 (excluding version 2.2.2)","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03145,"percentile":0.88237,"provenance":"source"},"cwes":[],"references":[{"url":"https://hackerone.com/reports/344595","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/node-tar/compare/58a8d43...a5f7779","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1821","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d","tags":["x_refsource_MISC"]},{"url":"https://github.com/npm/node-tar/commits/v2.2.2","tags":["x_refsource_MISC"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":17.65}]},"affected":[{"ecosystem":"npm","package":"tar","vulnerableRanges":[">=3.0.0, <4.4.2","<2.2.2"],"patched":["4.4.2","2.2.2"],"from":["GHSA-j44m-qm6p-hp7m"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file overwrite in node-tar, affecting versions before 4.4.2 (excluding 2.2.2), that arises when extracting a tarball. An attacker can overwrite an existing file on the system by supplying a tarball containing a hardlink to that file followed by a plain file with the same name, with the plain file's content replacing the original.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:54Z"},"euvd":{"id":"EUVD-2019-0468","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-npm-node-tar-cve-2018-20834","children":[{"from":"CVE-2018-20834","to":"CVE-2021-32803","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/unpack.js"],"commits":["https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8","https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d","https://github.com/npm/node-tar/commit/9dbdeb6df8e9dbd96fa9e84341b9d74734be6c20"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2018-20834","to":"CVE-2021-32804","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/unpack.js"],"commits":["https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8","https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d","https://github.com/npm/node-tar/commit/1f036ca23f64a547bdd6c79c1a44bc62e8115da4"],"basis":"shared function","functions":["Unpack"]}]}]}}