{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0.4.11"
              },
              {
                "last_affected": "0.4.46"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "322ee2ea81a10b063b808b244cab33cd0b45ad1f"
            },
            {
              "last_affected": "fc459c149f83bf4daceaa52e17d351989002e1a9"
            }
          ],
          "repo": "https://github.com/composefs/tar-rs",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70622.json"
  },
  "details": "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.",
  "id": "CVE-2026-70622",
  "modified": "2026-08-12T03:51:23.548900847Z",
  "published": "2026-08-10T17:35:23.683Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70622.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-70622"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/composefs/tar-rs"
    },
    {
      "type": "EVIDENCE",
      "url": "https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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": "CVSS_V4"
    }
  ],
  "summary": "tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()"
}