cve.bz

CVE-2026-42497 archive\ \: Link Following

7.5 highEPSS 0.5%Fix available

High (7.5) in archive\ \. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-05-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
CPANSec (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42497 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42497?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42497?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42497 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • archive\:\

Versions

From the CNA's record in the CVE List.

ProductAffected
BINGOS Archive::Tarbefore 3.08

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12perl5.36.0-7+deb12u4DEBIAN-CVE-2026-42497 DLA-4821-1
Debian13perl5.40.1-6+deb13u1DEBIAN-CVE-2026-42497
Debian14perl5.42.3-1DEBIAN-CVE-2026-42497
Ubuntu24.04:LTSperl5.38.2-3.2ubuntu0.3UBUNTU-CVE-2026-42497
Ubuntu25.10, 26.10, Pro:14.04:LTS and 3 moreperlno fix listedUBUNTU-CVE-2026-42497
Alpinev3.24perl5.42.3-r0ALPINE-CVE-2026-42497
Azure Linux3perl5.38.2-510AZL-89136
Alpaquita23perl5.36.3-r2BELL-CVE-2026-42497
Alpaquita25perl5.40.4-r1BELL-CVE-2026-42497
Alpaquitastreamperl5.42.2-r1BELL-CVE-2026-42497
BellSoft Hardened Containers23perl5.36.3-r2BELL-CVE-2026-42497
BellSoft Hardened Containers25perl5.40.4-r1BELL-CVE-2026-42497
BellSoft Hardened Containersstreamperl5.42.2-r1BELL-CVE-2026-42497

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate impact vulnerability in `perl-Archive-Tar` allows an attacker to modify arbitrary files on the system. By crafting a malicious tar archive, an attacker can exploit a path traversal flaw during extraction to create hardlinks outside the intended directory. This could lead to data corruption or unauthorized changes to sensitive system files if a user extracts a specially crafted archive.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-Archive-TarFix deferred
Red Hat Enterprise Linux 7perl-Archive-TarOut of support scope
Red Hat Enterprise Linux 8perl:5.32/perl-Archive-TarFix deferred
Red Hat Enterprise Linux 8perl-Archive-TarFix deferred
Red Hat Enterprise Linux 9perl-Archive-TarFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42497.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON