CVE-2026-42496: Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory
Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory.
_make_special_file() passes the tar header's linkname to symlink() without validating it against absolute paths or .. segments. The secure-extract mode check that guards regular file extraction does not cover the symlink target.
A subsequent open through the extracted name reads or writes the attacker chosen path.
Security readout for executives and security teams
Plain-English summary
A vulnerable Perl Archive::Tar extractor can create symbolic links that point outside the intended extraction folder. If later code reads from or writes through that extracted name, an attacker-controlled archive could expose or modify sensitive files. The CVSS score is critical, but the bundle does not show confirmed active exploitation.
Executive priority
Treat as urgent where untrusted archives are processed automatically or by exposed services. Prioritize patching internet-facing, multi-tenant, build, and import workflows first. If Archive::Tar is only used for trusted internal archives, urgency is lower but still warrants scheduled remediation.
Technical view
Archive::Tar before 3.08 passes the tar header linkname to symlink() without rejecting absolute paths or traversal segments. The secure extraction check protects regular files but not symlink targets. The flaw maps to CWE-22 and CWE-59 and can lead to confidentiality and integrity impact after follow-on file access.
Likely exposure
Exposure is most likely in Perl applications, automation, CI, packaging, import, backup, or scanning workflows that use Archive::Tar before 3.08 to extract untrusted tar archives. Red Hat advisories indicate downstream package remediation exists, but product-specific status should be checked against vendor guidance.
Exploitation context
The source bundle marks KEV as false and provides no cited evidence of active exploitation. The attack scenario requires a crafted tar archive and subsequent access through the extracted symlink name. CVSS indicates network reachability, low complexity, no privileges, and no user interaction in applicable deployments.
Researcher notes
The key gap is symlink target validation in _make_special_file(), not regular-file extraction. Analysis should focus on reachable extraction paths and post-extraction file operations. Do not assume compromise without evidence; the provided sources show severity and fixes, not exploitation in the wild.
Mitigation direction
Upgrade Archive::Tar to version 3.08 or later.
Apply relevant vendor packages and Red Hat advisories where applicable.
Avoid extracting untrusted tar archives with vulnerable Archive::Tar versions.
Run archive extraction in isolated, least-privileged temporary locations.
Check vendor guidance for product-specific fixed package versions.
Validation and detection
Inventory Perl dependencies for Archive::Tar versions before 3.08.
Review services that accept or process user-supplied tar archives.
Confirm vendor package status against Red Hat or distribution advisories.
Verify extraction code rejects unsafe symlink targets after remediation.
Check tests cover symlink targets with absolute paths and traversal segments.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-22 · source CWE mapping
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Link Resolution Before File Access ('Link Following')
Improper Link Resolution Before File Access ('Link Following') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.