{"api_version":"1","generated_at":"2026-07-24T22:43:40+00:00","cve":"CVE-2018-20834","urls":{"html":"https://cve.report/CVE-2018-20834","api":"https://cve.report/api/cve/CVE-2018-20834.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-20834","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834"},"summary":{"title":"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).","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-04-30 19:29:00","updated_at":"2019-09-04 20:15:00"},"problem_types":["CWE-59"],"metrics":[],"references":[{"url":"https://github.com/npm/node-tar/compare/58a8d43...a5f7779","name":"https://github.com/npm/node-tar/compare/58a8d43...a5f7779","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Comparing 58a8d43...a5f7779 · npm/node-tar · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d","name":"https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d","refsource":"MISC","tags":[],"title":"Bump fstream to fix hardlink overwriting vulnerability · npm/node-tar@7ecef07 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/npm/node-tar/commits/v2.2.2","name":"https://github.com/npm/node-tar/commits/v2.2.2","refsource":"MISC","tags":[],"title":"Commits · npm/node-tar · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834","name":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834","refsource":"MISC","tags":[],"title":"NVD - CVE-2018-20834","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://access.redhat.com/errata/RHSA-2019:1821","name":"RHSA-2019:1821","refsource":"REDHAT","tags":[],"title":"Red Hat Customer Portal","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://hackerone.com/reports/344595","name":"https://hackerone.com/reports/344595","refsource":"MISC","tags":["Exploit","Third Party Advisory"],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8","name":"https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"unpack: only reuse file fs entries if nlink = 1 · npm/node-tar@b0c5843 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20834","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"20834","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"node-tar_project","cpe5":"node-tar","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"20834","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"node-tar_project","cpe5":"node-tar","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2018-20834","qid":"981797","title":"Nodejs (npm) Security Update for tar (GHSA-j44m-qm6p-hp7m)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-20834","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://hackerone.com/reports/344595","refsource":"MISC","name":"https://hackerone.com/reports/344595"},{"url":"https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8","refsource":"MISC","name":"https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8"},{"url":"https://github.com/npm/node-tar/compare/58a8d43...a5f7779","refsource":"MISC","name":"https://github.com/npm/node-tar/compare/58a8d43...a5f7779"},{"refsource":"REDHAT","name":"RHSA-2019:1821","url":"https://access.redhat.com/errata/RHSA-2019:1821"},{"refsource":"MISC","name":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20834"},{"refsource":"MISC","name":"https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d","url":"https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d"},{"refsource":"MISC","name":"https://github.com/npm/node-tar/commits/v2.2.2","url":"https://github.com/npm/node-tar/commits/v2.2.2"}]}},"nvd":{"publishedDate":"2019-04-30 19:29:00","lastModifiedDate":"2019-09-04 20:15:00","problem_types":["CWE-59"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.4},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:node-tar_project:node-tar:*:*:*:*:*:*:*:*","versionEndExcluding":"2.2.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:node-tar_project:node-tar:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"4.4.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"20834","Ordinal":"149916","Title":"CVE-2018-20834","CVE":"CVE-2018-20834","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"20834","Ordinal":"1","NoteData":"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).","Type":"Description","Title":null},{"CveYear":"2018","CveId":"20834","Ordinal":"2","NoteData":"2019-04-30","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"20834","Ordinal":"3","NoteData":"2019-09-04","Type":"Other","Title":"Modified"}]}}}