Skip to content
OpenAdvisories
High · 7.5 CVE-2026-42497 EUVD-2026-31777GHSA-fcfm-93gv-wh6f

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

Published May 26, 2026 · Updated Nov 10, 2026 · 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.

Affected products

VendorProductAffectedFixed
BINGOS Archive::Tar < 3.08 3.08

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 perl 5.42.3-1 —
Debian 13 perl 5.40.1-6+deb13u1 —
Debian 12 perl 5.36.0-7+deb12u4 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 perl No fix yet —
Ubuntu 25.10 perl No fix yet —
Ubuntu 24.04 LTS perl 5.38.2-3.2ubuntu0.3 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS perl No fix yet —
Ubuntu Pro 18.04 LTS perl No fix yet —
Ubuntu Pro 16.04 LTS perl No fix yet —
Ubuntu Pro 14.04 LTS perl No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 perl 5.42.3-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 perl-Archive-Tar +1 3.04-522.amzn2023.0.3 ALAS2023-2026-1805
Amazon Linux 2 perl-Archive-Tar 1.92-3.amzn2.0.2 ALAS2-2026-3347

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 perl 5.38.2-510 —

Advisories 4

References