{"id":"CVE-2018-20834","details":"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).","aliases":["GHSA-j44m-qm6p-hp7m"],"modified":"2026-04-10T04:10:06.838412Z","published":"2019-04-30T19:29:03.327Z","references":[{"type":"WEB","url":"https://github.com/npm/node-tar/commits/v2.2.2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:1821"},{"type":"FIX","url":"https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d"},{"type":"FIX","url":"https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8"},{"type":"FIX","url":"https://github.com/npm/node-tar/compare/58a8d43...a5f7779"},{"type":"EVIDENCE","url":"https://hackerone.com/reports/344595"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/isaacs/node-tar","events":[{"introduced":"0"},{"fixed":"523c5c7fef48b10811fccd12b42803c61b6aead8"},{"introduced":"1098f4b91d2f51aab7301279fdfa104b12eb45e8"},{"fixed":"a5f77792dd158603b93cb00e230ef957bc3ce55b"},{"fixed":"7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d"},{"fixed":"b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.2.2"},{"introduced":"3.0.0"},{"fixed":"4.4.2"}]}}],"versions":["0.1.0","0.1.10","0.1.11","0.1.12","0.1.13","0.1.2","0.1.3","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","v0.1.14","v0.1.15","v0.1.16","v0.1.17","v0.1.18","v0.1.19","v0.1.20","v1.0.0","v1.0.1","v1.0.2","v1.0.3","v2.0.0","v2.0.1","v2.1.0","v2.1.1","v2.2.1","v3.0.0","v3.0.1","v3.1.0","v3.1.1","v3.1.10","v3.1.11","v3.1.12","v3.1.13","v3.1.14","v3.1.15","v3.1.2","v3.1.3","v3.1.4","v3.1.5","v3.1.6","v3.1.7","v3.1.8","v3.1.9","v3.2.0","v4.0.0","v4.0.1","v4.0.2","v4.1.0","v4.1.1","v4.1.2","v4.2.0","v4.3.0","v4.3.1","v4.3.2","v4.3.3","v4.4.0","v4.4.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20834.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}