CVE-2026-42497

Severity CVSS v4.0:
Pending analysis
Type:
CWE-59 Link Following
Publication date:
26/05/2026
Last modified:
28/05/2026

Description

Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory.<br /> <br /> _make_special_file() passes the tar header&amp;#39;s linkname to link() without validating it against absolute paths or .. segments, creating a hardlink that shares the victim file&amp;#39;s inode.<br /> <br /> 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&amp;#39;s mode, owner, and timestamps to the shared inode during extraction alone.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:archive\:\:tar_project:archive\:\:tar:*:*:*:*:*:perl:*:* 3.08 (excluding)