CVEfocus › CVE database › CVE-2026-42497

CVE-2026-42497Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled…

CVSS 7.5 HighEPSS 0.5% (higher than 41% of CVEs)Published 2026-05-26Updated 2026-11-10Assigner: CPANSec

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.

CWE-59CWE-732

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
8Fix pending
2Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10perlFix pendingUBUNTU-CVE-2026-42497
Ubuntu 26.04perlNot affected
vulnerable_code_not_present
Ubuntu 25.10perlWill not fix
same patch of CVE-2026-42496
UBUNTU-CVE-2026-42497
Ubuntu 24.04perlFixed5.38.2-3.2ubuntu0.3UBUNTU-CVE-2026-42497
Ubuntu 22.04perlNot affected
vulnerable_code_not_present
Ubuntu 20.04perlFix pendingUBUNTU-CVE-2026-42497
Ubuntu 18.04perlFix pendingUBUNTU-CVE-2026-42497
Ubuntu 16.04perlFix pendingUBUNTU-CVE-2026-42497
Ubuntu 14.04perlFix pendingUBUNTU-CVE-2026-42497
Debian 14perlFixed5.42.3-1DEBIAN-CVE-2026-42497
Debian 13perlFixed5.40.1-6+deb13u1DEBIAN-CVE-2026-42497
Debian 12perlFixed5.36.0-7+deb12u4DEBIAN-CVE-2026-42497
Red Hat Enterprise Linux 10perl-Archive-TarFix pending
Fix deferred
Red Hat Enterprise Linux 9perl-Archive-TarFix pending
Fix deferred
Red Hat Enterprise Linux 8perl-Archive-TarFix pending
Fix deferred
Red Hat Enterprise Linux 7perl-Archive-TarWill not fix
Out of support scope
Alpine Linux 3.24perlFixed5.42.3-r0ALPINE-CVE-2026-42497

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to Archive::Tar 3.08 or later.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.