GHSA-fcfm-93gv-wh6f
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft tar with malicious hardlink entry
-
DeliveryDeliver archive to auto-extracting service
-
ExploitArchive::Tar <3.08 creates hardlink outside extraction dir
-
ExecutionExtraction chmods shared inode
-
ImpactPermissions 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3Description PRE-NVD
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
An issue in Archive v3.3.7 allows attackers to execute a path traversal via extracting a crafted zip file. Rated high se
An issue in Archive v3.3.7 allows attackers to spoof zip filenames which can lead to inconsistent filename parsing. Rate
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Symlink-based path traversal in the Perl module Archive::Tar before version 3.08 allows a malicious tar archive to write
Memory exhaustion in the Perl Archive::Tar module before version 3.10 lets remote attackers cause a denial of service by
Same weakness CWE-59 – Improper Link Resolution Before File Access
View allSame technique Buffer Overflow
View allVendor StatusVendor
Debian
| 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) | - |
EUVD-2026-31777
NVD
CVE.org
EPSS
VulDB
Exploit-DB