Vulnerabilities

CVE-2026-42497

High 7.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-05-26
Last modified
2026-11-10
Assigned by
9b29abf9-4ab0-4765-b253-1875cd9b441e
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.4 % higher than 34 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Archive::tar Project Archive::tar < 3.08 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1027.006: HTML Smuggling stealth
  • T1027.009: Embedded Payloads stealth
  • T1083: File and Directory Discovery discovery
  • T1134.001: Token Impersonation/Theft stealth, privilege-escalation
  • T1505.005: Terminal Services DLL persistence
  • T1547.009: Shortcut Modification persistence, privilege-escalation
  • T1548: Abuse Elevation Control Mechanism privilege-escalation
  • T1550.004: Web Session Cookie lateral-movement
  • T1553.002: Code Signing defense-impairment
  • T1554: Compromise Host Software Binary persistence
  • T1564.009: Resource Forking stealth
  • T1574.005: Executable Installer File Permissions Weakness stealth, execution
  • T1574.010: Services File Permissions Weakness stealth, execution

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities