Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-20834

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).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-20834
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:43 UTC · Revision 1

Source evidence

CVE-2018-20834

core-osv · Original source

Published 30 Apr 2019, 19:29 UTC

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).

osv:CVE-2018-20834
Complete source record
{
  "id": "54b8e90d0a071db4afea6e5d09c1d45ba2e169db0b3b06154788caa1d8d7474e",
  "url": "https://osv.dev/vulnerability/CVE-2018-20834",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-20834",
    "summary": "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).",
    "evidence": "osv:CVE-2018-20834",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-20834",
      "aliases": [
        "CVE-2018-20834",
        "GHSA-j44m-qm6p-hp7m"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/isaacs/node-tar",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "523c5c7fef48b10811fccd12b42803c61b6aead8"
                },
                {
                  "introduced": "1098f4b91d2f51aab7301279fdfa104b12eb45e8"
                },
                {
                  "fixed": "a5f77792dd158603b93cb00e230ef957bc3ce55b"
                },
                {
                  "fixed": "7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d"
                },
                {
                  "fixed": "b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:isaacs:tar:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.2.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:isaacs:tar:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "4.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.2.1",
            "v4.4.1",
            "v4.4.0",
            "v4.3.3",
            "v4.3.2",
            "v4.3.1",
            "v4.3.0",
            "v4.2.0",
            "v4.1.2",
            "v4.1.1",
            "v4.1.0",
            "v4.0.2",
            "v4.0.1",
            "v3.2.0",
            "v4.0.0",
            "v3.1.15",
            "v3.1.14",
            "v3.1.13",
            "v3.1.12",
            "v3.1.11",
            "v3.1.10",
            "v3.1.9",
            "v3.1.8",
            "v3.1.7",
            "v3.1.6",
            "v3.1.5",
            "v3.1.4",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.1",
            "v3.0.0",
            "v2.1.1",
            "v2.1.0",
            "v2.0.1",
            "v2.0.0",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v0.1.20",
            "v0.1.19",
            "v0.1.18",
            "v0.1.17",
            "v0.1.16",
            "v0.1.15",
            "v0.1.14",
            "0.1.13",
            "0.1.12",
            "0.1.11",
            "0.1.10",
            "0.1.9",
            "0.1.8",
            "0.1.7",
            "0.1.6",
            "0.1.5",
            "0.1.3",
            "0.1.2",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20834.json"
          }
        }
      ],
      "modified": "2026-10-20T10:51:34.667400768Z",
      "provider": "osv",
      "references": [
        "https://github.com/npm/node-tar/commits/v2.2.2",
        "https://access.redhat.com/errata/RHSA-2019:1821",
        "https://nvd.nist.gov/vuln/detail/CVE-2018-20834",
        "https://github.com/npm/node-tar/commit/7ecef07da6a9e72cc0c4d0c9c6a8e85b6b52395d",
        "https://github.com/npm/node-tar/commit/b0c58433c22f5e7fe8b1c76373f27e3f81dcd4c8",
        "https://github.com/npm/node-tar/compare/58a8d43...a5f7779",
        "https://hackerone.com/reports/344595"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-20834",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382590,
  "published_at": "2019-04-30T19:29:03.327+00:00"
}