{"id":"CVE-2018-20834","aliases":["CLSA-2026-1773620217","CLSA-2026-1774484514","DEBIAN-CVE-2018-20834","EUVD-2019-0468","GHSA-j44m-qm6p-hp7m","RHSA-2019:1821"],"status":"published","title":"Arbitrary File Overwrite in tar","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":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03145,"percentile":0.88015,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-59"],"published":"2019-04-30T18:01:58Z","modified":"2026-10-23T19:28:13Z","fixes":[{"ecosystem":"npm","package":"tar","fixed_in":["2.2.2","4.4.2"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-tar","fixed_in":["4.4.4+ds1-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-tar","fixed_in":["4.4.4+ds1-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-tar","fixed_in":["4.4.4+ds1-2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2"}]}]},{"source":"ghsa","ecosystem":"npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.4.2"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.3-tuxcare.0"},{"fixed":"1.0.3-tuxcare.1"}]}],"versions":["1.0.3"],"bundled":4},{"source":"osv","ecosystem":"TuxCare:npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.1-tuxcare.0"},{"fixed":"2.1.1-tuxcare.1"}]}],"versions":["2.1.1"],"bundled":5},{"source":"osv","ecosystem":"Debian:12","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.4+ds1-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.4+ds1-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.4+ds1-2"}]}]},{"source":"osv","ecosystem":"npm","package":"tar","ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"4.4.2"}]}]},{"source":"osv","ecosystem":"npm","package":"tar","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.2"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs8-nodejs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.16.0-1.el7"}]}],"bundled":6},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs8-nodejs-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.16.0-1.el7"}]}],"bundled":6},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs8-nodejs-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.16.0-1.el7"}]}],"bundled":6},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs8-nodejs-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:8.16.0-1.el7"}]}],"bundled":6},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:3::el7","package":"rh-nodejs8-npm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:6.4.1-8.16.0.1.el7"}]}],"bundled":6}],"products":[{"vendor":"isaacs","product":"tar"}],"references":[{"url":"https://hackerone.com/reports/344595","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","article"]},{"url":"https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/npm/node-tar/compare/58a8d43...a5f7779","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1821","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834","tags":["x_refsource_MISC","x_transferred","advisory"]},{"url":"https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://github.com/npm/node-tar/commits/v2.2.2","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://github.com/advisories/GHSA-j44m-qm6p-hp7m"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20834","tags":["advisory"]},{"url":"https://github.com/isaacs/node-tar","tags":["package"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1660998","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1661002","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1661005","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1661010","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1690808","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1702338","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_1821.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-12116","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12116","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12116","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-12121","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12121","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12121","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-12122","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12122","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12122","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-12123","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12123","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12123","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-20834","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20834","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-5737","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-5737","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5737","tags":["advisory"]},{"url":"https://nodejs.org/ja/blog/vulnerability/february-2019-security-releases/","tags":["article"]}],"sources":{"cve":[{"id":"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).","status":"published","published":"2019-04-30T18:01:58Z","modified":"2024-08-05T12:12:27.376Z","updated_at":"2026-11-02T14:35:00.237825Z"}],"euvd":[{"id":"EUVD-2019-0468","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).","status":"published","published":"2019-04-30T18:01:58Z","modified":"2024-08-05T12:12:27Z","updated_at":"2026-11-03T02:39:29.769885Z"}],"ghsa":[{"id":"GHSA-j44m-qm6p-hp7m","title":"Arbitrary File Overwrite in tar","description":"Versions of `tar` prior to 4.4.2 for 4.x and 2.2.2 for 2.x are vulnerable to Arbitrary File Overwrite. Extracting tarballs containing a hardlink to a file that already exists in the system, and a file that matches the hardlink will overwrite the system's file with the contents of the extracted file.\n\n\n## Recommendation\n\nFor tar 4.x, upgrade to version 4.4.2 or later.\nFor tar 2.x, upgrade to version 2.2.2 or later.","status":"published","published":"2019-05-01T18:37:31Z","modified":"2023-11-29T22:25:50Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:37:23.843848Z"}],"nvd":[{"id":"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).","status":"published","published":"2019-04-30T19:29:03.327Z","modified":"2026-06-17T01:53:33.49Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:04:57.307075Z"}],"osv":[{"id":"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).","status":"published","published":"2019-04-30T19:29:03.327Z","modified":"2026-10-20T10:51:34.667400768Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:09.145458Z"},{"id":"DEBIAN-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).","status":"published","published":"2019-04-30T19:29:03.327Z","modified":"2026-10-23T18:03:05.4966375Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"GHSA-j44m-qm6p-hp7m","title":"Arbitrary File Overwrite in tar","description":"Versions of `tar` prior to 4.4.2 for 4.x and 2.2.2 for 2.x are vulnerable to Arbitrary File Overwrite. Extracting tarballs containing a hardlink to a file that already exists in the system, and a file that matches the hardlink will overwrite the system's file with the contents of the extracted file.\n\n\n## Recommendation\n\nFor tar 4.x, upgrade to version 4.4.2 or later.\nFor tar 2.x, upgrade to version 2.2.2 or later.","status":"published","published":"2019-05-01T18:37:31Z","modified":"2023-11-29T22:25:48Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T15:46:49.977351Z"},{"id":"RHSA-2019:1821","title":"Red Hat Security Advisory: rh-nodejs8-nodejs security update","status":"published","published":"2024-09-13T16:56:46Z","modified":"2026-08-05T10:06:13Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:06.0195Z"},{"id":"CLSA-2026-1773620217","title":"TuxCare security update for tar (4 CVEs)","description":"TuxCare rebuilt tar to address 4 CVEs. Fixed in 1.0.3-tuxcare.1.","status":"published","published":"2026-08-04T14:52:12Z","modified":"2026-10-23T19:28:13.603540691Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774484514","title":"TuxCare security update for tar (5 CVEs)","description":"TuxCare rebuilt tar to address 5 CVEs. Fixed in 2.1.1-tuxcare.1.","status":"published","published":"2026-08-04T14:52:15Z","modified":"2026-10-15T09:47:04.625520498Z","updated_at":"2026-11-02T15:43:43.621843Z"}]}}
