QSearchQSearch

CVE-2026-42497

7.5 HIGH

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

Published: 2026-05-26 · Last updated: 2026-05-28

Severity and scoring

CVSS
7.5 HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CWE
CWE-59, CWE-732

Affected products

VendorProduct
archive\\

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.

Source: NVD

References

Related CVEs

Same CWE

  • CVE-2026-53856 OpenClaw before 2026.4.24 contains an insecure file permissions vulnerability in config recovery that restores OpenClaw.json with overly ... (5.5 MEDIUM)
  • CVE-2026-50656 Microsoft is aware of an elevation of privilege in the Microsoft Malware Protection Engine in Microsoft Defender publicly referred to as ... (7.8 HIGH)
  • CVE-2026-54230 A symlink following vulnerability was found in the ABRT post-create event handler scripts in libreport (7.0 HIGH)
  • CVE-2026-54056 Kitty is a cross-platform GPU based terminal (7.6 HIGH)
  • CVE-2026-54055 Kitty is a cross-platform GPU based terminal (5.0 MEDIUM)