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

Published May 26, 2026
·
Updated

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

makespecialfile() 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 extractfile() (guarded only against symlinks via -l) applies the tar header's mode, owner, and timestamps to the shared inode during extraction alone.

Affected Software

2 affected components
cpan/Archive::Tar<3.08
Archive\ \<3.08

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Archive::Tar to a version that resolves this vulnerability.

    Fixed in 3.08

Event History

May 26, 2026
CVE Published
via MITRE·12:17 AM
Data Sourced
via MITRE·12:17 AM
RemedyDescriptionWeakness
Data Sourced
via NVD·02:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-42497?

CVE-2026-42497 is classified with a risk score of 30, indicating a significant vulnerability.

2

What is the impact of CVE-2026-42497?

CVE-2026-42497 allows attackers to create hardlinks to controlled paths outside the extraction directory, potentially compromising file security.

3

How do I fix CVE-2026-42497?

To fix CVE-2026-42497, upgrade to Archive::Tar version 3.08 or later.

4

Which versions are affected by CVE-2026-42497?

All versions of Archive::Tar for Perl before 3.08 are affected by CVE-2026-42497.

5

Who should be concerned about CVE-2026-42497?

Users and administrators of Perl applications that utilize the Archive::Tar module should be concerned about CVE-2026-42497.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203