CVE-2026-42497
HIGH EPSS 33.4%
Published May 26, 20261mo ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
Published May 26, 2026 1mo ago
Last Modified Jun 17, 2026 2w ago
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity High
Availability None
Threat Intelligence
EPSS Exploit Probability
33.4% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 2
CWE-59
CWE-732
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| archive\ | \ | tar_project | <3.08 |
References 3
- github.com https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch
- metacpan.org https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes
- cve.org https://www.cve.org/CVERecord?id=CVE-2026-42496
Remediation
- github.com https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch