Path Traversal in Archive\:\:tar Project
CVE-2026-42496
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.005, 43.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Archive\:\:tar Project
- Bingos Archive::tar — versions 0
Weakness classification (CWE)
References
- github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158… (Patch, patch)
- metacpan.org/release/BINGOS/Archive-Tar-3.08/changes (release-notes, Release Notes)
- www.cve.org/CVERecord (related, Third Party Advisory)
- access.redhat.com/errata/RHSA-2026:30851
- access.redhat.com/errata/RHSA-2026:30852
- access.redhat.com/errata/RHSA-2026:30856
- access.redhat.com/errata/RHSA-2026:30857
- access.redhat.com/security/cve/CVE-2026-42496
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42496.json