CVE-2026-42497: Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the
Affects perlSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 5.38.2-3.2ubuntu0.3 soon.
Data as of 6 Nov 2026, 15:38 UTC
- Patch
- Available – fixed in 5.38.2-3.2ubuntu0.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 26 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 6 Nov 2026.
What to do
Upgrade the Ubuntu perl package to 5.38.2-3.2ubuntu0.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10perlpkg:deb/ubuntu/perl?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 25.10perlpkg:deb/ubuntu/perl?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Archive::Tar version 3.08 and later. Users should upgrade to version 3.08 or apply the fixed version 5.38.2-3.2ubuntu0.3 or later in their distributions. Until patched, avoid extracting untrusted tar archives with vulnerable versions of Archive::Tar. No other vendor advisory states that the issue is already mitigated or requires no action.
Description
Archive::Tar versions before 3.08 for Perl contain a vulnerability where hardlinks in tar archives can be extracted to attacker-controlled paths outside the intended extraction directory. This occurs because the function handling special files does not validate the linkname against absolute paths or directory traversal sequences, allowing an attacker to create a hardlink that shares an inode with a victim file. Subsequent writes to the extracted file modify the victim file, and file metadata changes are applied to the shared inode during extraction.
References
- ubuntu.com/security/CVE-2026-42497 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42497 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/40396457/ (opens in a new tab)
- github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch (opens in a new tab)
- metacpan.org/release/BINGOS/Archive-Tar-3.08/changes (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42496 (opens in a new tab)