Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory

Summary

CVECVE-2026-42496
StatePUBLISHED
AssignerCPANSec
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-26 02:16:40 UTC
Updated2026-07-15 02:21:32 UTC
DescriptionArchive::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.

Risk And Classification

Primary CVSS: v3.1 9.1 CRITICAL from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS: 0.004300000 probability, percentile 0.348600000 (date 2026-07-18)

Problem Types: CWE-59 | CWE-22 | CWE-59 CWE-59 Improper Link Resolution Before File Access ('Link Following') | CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1ADPDECLARED9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.1ADPCVSS8.2HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
3.10b0ca135-0b70-47e7-9f44-1890c2a1c46cSecondary8.2HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

CVSS v3.1 Breakdown

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

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Archive tar_project archive\ \ tar

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA BINGOS ArchiveTar affected 3.08 custom Not specified
ADP Red Hat Red Hat Enterprise Linux 10 unaffected 0:3.02-512.el10_2.1 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8 unaffected 8100020260616084412.651ee29f * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 8 unaffected 0:2.30-2.el8_10 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 9 unaffected 0:2.38-6.el9_8.1 * rpm Not specified
ADP Red Hat Red Hat Enterprise Linux 7 Not specified Not specified

References

ReferenceSourceLinkTags
security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42496.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c security.access.redhat.com
access.redhat.com/errata/RHSA-2026:30851 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:30856 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
metacpan.org/release/BINGOS/Archive-Tar-3.08/changes 9b29abf9-4ab0-4765-b253-1875cd9b441e metacpan.org Release Notes
access.redhat.com/errata/RHSA-2026:30857 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
access.redhat.com/errata/RHSA-2026:30852 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
www.cve.org/CVERecord 9b29abf9-4ab0-4765-b253-1875cd9b441e www.cve.org Third Party Advisory
access.redhat.com/security/cve/CVE-2026-42496 0b0ca135-0b70-47e7-9f44-1890c2a1c46c access.redhat.com
bugzilla.redhat.com/show_bug.cgi 0b0ca135-0b70-47e7-9f44-1890c2a1c46c bugzilla.redhat.com
github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd... 9b29abf9-4ab0-4765-b253-1875cd9b441e github.com Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2026-04-12T00:00:00.000ZIssue reported.
CNA2026-05-22T00:00:00.000ZVersion 3.08 released.
ADP2026-05-26T02:00:52.414ZReported to Red Hat.
ADP2026-05-26T00:17:19.110ZMade public.

Solutions

CNA: Upgrade to Archive::Tar 3.08 or later.

ADP: RHSA-2026:30857: Red Hat Enterprise Linux AppStream (v. 10)

ADP: RHSA-2026:30851: Red Hat Enterprise Linux AppStream (v. 8)

ADP: RHSA-2026:30856: Red Hat Enterprise Linux AppStream (v. 9)

ADP: RHSA-2026:30852: Red Hat Enterprise Linux BaseOS (v. 8)

Workarounds

ADP: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report