Skip to content
Heist/ feed
Back to feed
High

rust-tar — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-70622

tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.

Products
rust-tar
Affected versions
0.4.26-1, 0.4.26-1ubuntu0.1, 0.4.37-1, 0.4.37-3, 0.4.37-3ubuntu0.1, 0.4.37-3ubuntu0.1+esm1, 0.4.37-3ubuntu0.1~esm1, 0.4.38-2, 0.4.40-1, 0.4.40-1ubuntu0.1, 0.4.43-4, 0.4.44-1, 0.4.45-1, 0.4.45-2
Fixed versions
Not specified
CVEs
CVE-2026-70622
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:51 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-70622

core-osv · Original source

Published 10 Aug 2026, 18:18 UTC

tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.

osv:UBUNTU-CVE-2026-70622

rust-tar

Fixed versions: Not specified

rust-tar

Fixed versions: Not specified

rust-tar

Fixed versions: Not specified

rust-tar

Fixed versions: Not specified

rust-tar

Fixed versions: Not specified

Complete source record
{
  "id": "c32480c2a2ebf52db863c1178d511b28e5a0a239d029584a790c9b33918dfc56",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-70622",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-70622",
    "summary": "tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.",
    "evidence": "osv:UBUNTU-CVE-2026-70622",
    "products": [
      {
        "name": {
          "value": "rust-tar",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.26-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.4.26-1ubuntu0.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-tar",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.26-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.4.37-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.4.37-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.4.37-3ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.4.37-3ubuntu0.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.4.37-3ubuntu0.1+esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-tar",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.38-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.4.40-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.4.40-1ubuntu0.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-tar",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.45-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.4.45-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-tar",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.43-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.4.44-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.4.45-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-70622",
      "aliases": [
        "UBUNTU-CVE-2026-70622"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tar",
            "purl": "pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-infra%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "0.4.26-1",
            "0.4.26-1ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tar+default-dev",
                "binary_version": "0.4.26-1ubuntu0.1"
              },
              {
                "binary_name": "librust-tar-dev",
                "binary_version": "0.4.26-1ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tar",
            "purl": "pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "0.4.26-1",
            "0.4.37-1",
            "0.4.37-3",
            "0.4.37-3ubuntu0.1~esm1",
            "0.4.37-3ubuntu0.1",
            "0.4.37-3ubuntu0.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tar+default-dev",
                "binary_version": "0.4.37-3ubuntu0.1+esm1"
              },
              {
                "binary_name": "librust-tar-dev",
                "binary_version": "0.4.37-3ubuntu0.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tar",
            "purl": "pkg:deb/ubuntu/rust-tar?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.4.38-2",
            "0.4.40-1",
            "0.4.40-1ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tar-dev",
                "binary_version": "0.4.40-1ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tar",
            "purl": "pkg:deb/ubuntu/rust-tar?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.4.45-1",
            "0.4.45-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tar-dev",
                "binary_version": "0.4.45-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tar",
            "purl": "pkg:deb/ubuntu/rust-tar?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.4.43-4",
            "0.4.44-1",
            "0.4.45-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tar-dev",
                "binary_version": "0.4.45-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:30.103247049Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-70622"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-70622",
        "https://www.cve.org/CVERecord?id=CVE-2026-70622",
        "https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726",
        "https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-70622",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 359669,
  "published_at": "2026-08-10T18:18:00+00:00"
}