Skip to main content

Archive::Tar CVE-2026-42497

| EUVDEUVD-2026-31777 HIGH
Improper Link Resolution Before File Access (CWE-59)
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft tar with malicious hardlink entry
  2. Delivery
    Deliver archive to auto-extracting service
  3. Exploit
    Archive::Tar <3.08 creates hardlink outside extraction dir
  4. Execution
    Extraction chmods shared inode
  5. Impact
    Permissions altered on arbitrary external file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires that a victim application or service extract an attacker-supplied tar archive using a vulnerable Archive::Tar version (anything before 3.08). No non-default configuration is needed - the weakness existed even in the default secure extraction path because hardlink targets were not validated before 3.08; setting $Archive::Tar::INSECURE_EXTRACT_MODE would only widen exposure. The concrete prerequisite in the archive is a hardlink (or symlink, the CVE-2026-42496 sibling) entry whose linkname is an absolute path or contains '..' traversal components. Limiting factors: the attacker must get their archive to a target that auto-extracts it; impact is integrity-only (file permission/content modification via the shared inode), with no confidentiality or availability impact per the CVSS vector; and hardlink semantics make this primarily relevant on Unix-like filesystems rather than Windows/msys (where the upstream symlink tests are skipped).

Impact

Signals conflict in informative ways. The CVSS 3.1 base score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N) - unauthenticated, low-complexity, integrity-only impact - but EPSS is only 0.02% (5th percentile), there is no KEV listing, and no public exploit was identified, which points to a real but not widely-exploited weakness rather than an urgent mass-exploitation threat. The AV:N rating reflects that tar archives are commonly received over the network and extracted automatically; actual exploitation still requires that a victim application extract an attacker-controlled archive, so practical risk is concentrated in services that auto-process untrusted tarballs. A notable data-quality conflict must be flagged: the input Tags field says 'Buffer Overflow' and the Description fragment mentions a 'heap buffer overflow when compiling regular expressions' - that text is contamination from other CVEs bundled in the same oss-security digest (and CVE-2026-9538, a memory-exhaustion issue). CVE-2026-42497 is a link-following/path-traversal issue (CWE-59), not a buffer overflow; treat the buffer-overflow tag as erroneous. No SSVC decision data was provided.

Exploit ScenarioDerived

An attacker crafts a tar archive containing a hardlink entry whose target is an absolute path (e.g. /etc/...) or uses ../ traversal to point outside the extraction directory, then delivers it to a service that extracts uploads with Archive::Tar < 3.08. When the victim extracts the archive, the library creates the hardlink and the chmod performed during extraction alters the permissions of the targeted external file. No public proof-of-concept exploit was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

Arbitrary file modification in the Perl Archive::Tar module before version 3.08 allows a malicious tar archive to create hardlinks pointing outside the extraction directory. Any application or service that extracts attacker-supplied tarballs is affected: because extraction chmods the shared inode of a hardlink, an attacker can alter permissions of sensitive files outside the intended target path. EPSS is very low (0.02%, 5th percentile) and there is no public exploit identified at time of analysis; it is not listed in CISA KEV.

RemediationAI

Upgrade Archive::Tar to version 3.08 or later (Vendor-released patch: 3.08), which restores SECURE EXTRACT MODE checks that reject hardlink and symlink targets with absolute paths or '..' traversal; the fix is in commit https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158 and documented at https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes. On systems that ship Archive::Tar with Perl core, update the OS/vendor package (see Debian tracking) rather than only the standalone CPAN module. Until patched, do not enable $Archive::Tar::INSECURE_EXTRACT_MODE (it bypasses the link checks), and treat untrusted archives defensively: extract only into a dedicated throwaway/sandboxed directory that contains no sensitive files and is isolated from system paths (trade-off: requires reworking extraction workflows), or pre-screen archive entries and reject any hardlink/symlink whose linkname is absolute or contains '..' before extraction (trade-off: custom validation code must stay in sync with edge cases the library now handles).

Affected VersionsENISA

Archive::Tar 0 <3.08

Affected Packages

euvd archive_tar fix: 3.08

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Archive::Tar is a pure-Perl library (CPAN distribution, CPE cpe:2.3:a:archive\:\:tar_project:archive\:\:tar) widely used to read and write tar archives, including in automated pipelines that ingest untrusted archives. The flaw is a CWE-59 Improper Link Resolution ('Link Following') issue: during extraction in _make_special_file, the library created hardlink (and the related symlink) entries using the linkname supplied by the archive without validating it. The fixed commit (17c873492a05) adds checks under the default SECURE EXTRACT MODE that reject link targets that are absolute paths or that contain '..' traversal components. The hardlink case is particularly dangerous because, as the patch comment notes, the extraction process itself chmods the shared inode, so creating a hardlink to a file outside the extraction tree lets the archive change that external file's permissions.

Know when Archive gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Red Hat 6.8 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

3
CVSS changed
May 27, 2026 - 19:37 NVD
7.5 (HIGH)
Patch available
May 26, 2026 - 03:01 EUVD
CVE Published
May 26, 2026 - 00:45 nvd
UNKNOWN (no severity yet)

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

Debian

perl
Release Status Fixed Version Urgency
bullseye vulnerable 5.32.1-4+deb11u3 -
bullseye (security) vulnerable 5.32.1-4+deb11u5 -
bookworm vulnerable 5.36.0-7+deb12u3 -
bookworm (security) vulnerable 5.36.0-7+deb12u2 -
trixie vulnerable 5.40.1-6 -
forky, sid vulnerable 5.40.1-7 -
(unstable) fixed (unfixed) -

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy