Bug 2481317 (CVE-2026-42497) - CVE-2026-42497 perl-Archive-Tar: perl-Archive-Tar: Arbitrary file modification via crafted hardlinks during archive extraction
Summary: CVE-2026-42497 perl-Archive-Tar: perl-Archive-Tar: Arbitrary file modificatio...
Keywords:
Status: NEW
Alias: CVE-2026-42497
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2489813
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-26 02:01 UTC by OSIDB Bzimport
Modified: 2026-06-17 11:43 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-26 02:01:23 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.