{
  "id": "CVE-2026-42497",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42497",
  "published_at": "2026-05-26T00:17:50.656Z",
  "title": "Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory",
  "vendor": "BINGOS",
  "product": "Archive::Tar",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory.\n\n_make_special_file() passes the tar header's linkname to link() without validating it against absolute paths or .. segments, creating a hardlink that shares the victim file's inode.\n\nA subsequent write through the extracted name modifies the victim file, and the post-extraction chmod, chown, and utime block in _extract_file() (guarded only against symlinks via -l) applies the tar header's mode, owner, and timestamps to the shared inode during extraction alone.",
  "cwe": "CWE-59",
  "cpes": [
    "cpe:2.3:a:archive\\:\\:tar_project:archive\\:\\:tar:*:*:*:*:*:perl:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.5,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "BINGOS",
        "product": "Archive::Tar",
        "ranges": [
          "\u003c 3.08"
        ],
        "fixed_in": [
          "3.08"
        ]
      }
    ],
    "solutions": [
      "Upgrade to Archive::Tar 3.08 or later."
    ],
    "upgrade": [
      "Upgrade Archive::Tar to 3.08 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch"
      },
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
