# CVE-2026-42497: Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-05-26T00:17:50.656Z
- Modified: 2026-11-10T13:19:07.687Z
- Weaknesses: CWE-59, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory.

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

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

(As written by CVE List.)

## Affected

- Archive-Tar: before 3.08
- archive::tar_project archive::tar: before 3.08

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch> (patch)
- <https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes> (release-notes)
- <https://www.cve.org/CVERecord?id=CVE-2026-42496> (related, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2026-42497](https://www.cve.org/CVERecord?id=CVE-2026-42497), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-42497](https://nvd.nist.gov/vuln/detail/CVE-2026-42497), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-42497 · Whole record: https://cve.day/CVE-2026-42497.json · Rebuilt by cve.day 2026-11-25T22:59:22.304Z
