CVE-2026-42497 Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory
HighCVSS 7.5
EPSS 0.47%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| BINGOS Archive::Tar | < 3.08 | 3.08 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| redhat/perl-Archive-Tar(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/perl-Archive-Tar(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/perl:5.32/perl-Archive-Tar(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/perl-Archive-Tar(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/perl-Archive-Tar(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| debian/perl(Debian:12) | < 5.36.0-7+deb12u4 | 5.36.0-7+deb12u4 |
| debian/perl(Debian:12) | = 5.36.0-7 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u1 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u2 | No fix listed |
| debian/perl(Debian:12) | = 5.36.0-7+deb12u3 | No fix listed |
| debian/perl(Debian:13) | < 5.40.1-6+deb13u1 | 5.40.1-6+deb13u1 |
| debian/perl(Debian:13) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | < 5.42.3-1 | 5.42.3-1 |
| debian/perl(Debian:14) | = 5.40.1-6 | No fix listed |
| debian/perl(Debian:14) | = 5.40.1-7 | No fix listed |
| debian/perl(Debian:14) | = 5.40.1-8 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-1 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-2 | No fix listed |
| debian/perl(Debian:14) | = 5.42.0-3 | No fix listed |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/perl(Debian:14) | = 5.42.2-1 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-2 | No fix listed |
| debian/perl(Debian:14) | = 5.42.2-3 | No fix listed |
| alpine/perl(Alpine:v3.24) | < 5.42.3-r0 | 5.42.3-r0 |
| ubuntu/perl(Ubuntu:24.04) | < 5.38.2-3.2ubuntu0.3 | 5.38.2-3.2ubuntu0.3 |
| ubuntu/perl(Ubuntu:26.10) | All versions | No fix listed |
| archivetar project archivetar | < 3.08 | 3.08 |
| azure linux perl(Azure Linux:3.0) | All versions | No fix listed |
| azure linux perl(Azure Linux:4.0) | < 4:5.42.3-529.azl4 | 4:5.42.3-529.azl4 |
References
- github.com patch
- metacpan.org release-notes
- www.cve.org related third-party-advisory
- cert-portal.siemens.com
- MSRC Security Update Guide vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2481317 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-42497 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- Release Notes vendor-advisory