CVE-2026-42496
CVE-2026-42496 · Archive::Tar versions before 3.08 for Perl extract symlinks with attacker controlled targets outside the extraction directory
CVSS 9.1 · Critical · EPSS 0.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- archive::tarUpdate to 3.08
- perl Alpine 3.24Update to 5.42.3-r0
- perl Debian 12Update to 5.36.0-7+deb12u4
- perl Debian 13Update to 5.40.1-6+deb13u1
- and 8 more
Check the installed version:
apk list -I -o perldpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="perl"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Updated
Fixes in distributions
- DLA-4821-1 · Debian 12 ·
- RLSA-2026:30852 · Rocky Linux 8 ·
- RLSA-2026:30857 · Rocky Linux 10 ·
- USN-8467-2 · Ubuntu 25.10 ·
- RLSA-2026:30856 · Rocky Linux 9 ·
- RHSA-2026:30857 · Red Hat Enterprise Linux 10.2 ·
- RLSA-2026:30851 · Rocky Linux 8 ·
- RHSA-2026:30856 · Red Hat Enterprise Linux 9 appstream ·
- RHSA-2026:30852 · Red Hat Enterprise Linux 8 baseos ·
- RHSA-2026:30851 · Red Hat Enterprise Linux 8 appstream ·
- ALSA-2026:30851 · AlmaLinux 8 ·
- ALSA-2026:30852 · AlmaLinux 8 ·
- ALSA-2026:30856 · AlmaLinux 9 ·
- ALSA-2026:30857 · AlmaLinux 10 ·
- USN-8467-1 · Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·
Stack: system
Affected products and versions
archive::tar
- Versions
- ≥ 0, < 3.08: Affected (custom)
Update to 3.08
perl Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 5.42.3-r0
Update to 5.42.3-r0
perl Debian 12
- Versions
- 5.36.0-7
- 5.36.0-7+deb12u1
- 5.36.0-7+deb12u2
- 5.36.0-7+deb12u3
- Affected ranges
- ECOSYSTEM: < 5.36.0-7+deb12u4
Update to 5.36.0-7+deb12u4
perl Debian 13
- Versions
- 5.40.1-6
- Affected ranges
- ECOSYSTEM: < 5.40.1-6+deb13u1
Update to 5.40.1-6+deb13u1
perl Debian 14
- Versions
- 5.40.1-6
- 5.40.1-7
- 5.40.1-8
- 5.42.0-1
- 5.42.0-2
- 5.42.0-3
All versions (9)
- 5.42.2-1
- 5.42.2-2
- 5.42.2-3
- Affected ranges
- ECOSYSTEM: < 5.42.3-1
Update to 5.42.3-1
perl Ubuntu Pro 14.04 LTS
- Versions
- 5.14.2-21build1
- 5.18.1-4
- 5.18.1-4build1
- 5.18.1-5
- 5.18.2-2
- 5.18.2-2ubuntu1
All versions (14)
- 5.18.2-2ubuntu1.1
- 5.18.2-2ubuntu1.3
- 5.18.2-2ubuntu1.4
- 5.18.2-2ubuntu1.6
- 5.18.2-2ubuntu1.7
- 5.18.2-2ubuntu1.7+esm3
- 5.18.2-2ubuntu1.7+esm4
- 5.18.2-2ubuntu1.7+esm5
- Affected ranges
- ECOSYSTEM: < 5.18.2-2ubuntu1.7+esm7
Update to 5.18.2-2ubuntu1.7+esm7
perl Ubuntu Pro 18.04 LTS
- Versions
- 5.26.0-8ubuntu1
- 5.26.1-2ubuntu1
- 5.26.1-3
- 5.26.1-4
- 5.26.1-4build1
- 5.26.1-5
All versions (13)
- 5.26.1-6
- 5.26.1-6ubuntu0.1
- 5.26.1-6ubuntu0.2
- 5.26.1-6ubuntu0.3
- 5.26.1-6ubuntu0.5
- 5.26.1-6ubuntu0.6
- 5.26.1-6ubuntu0.7
- Affected ranges
- ECOSYSTEM: < 5.26.1-6ubuntu0.7+esm2
Update to 5.26.1-6ubuntu0.7+esm2
perl Ubuntu Pro 20.04 LTS
- Versions
- 5.28.1-6build1
- 5.30.0-7
- 5.30.0-9
- 5.30.0-9build1
- 5.30.0-9ubuntu0.2
- 5.30.0-9ubuntu0.3
All versions (8)
- 5.30.0-9ubuntu0.4
- 5.30.0-9ubuntu0.5
- Affected ranges
- ECOSYSTEM: < 5.30.0-9ubuntu0.5+esm2
Update to 5.30.0-9ubuntu0.5+esm2
perl Ubuntu 22.04 LTS
- Versions
- 5.32.1-3ubuntu3
- 5.34.0-3ubuntu1
- 5.34.0-3ubuntu1.1
- 5.34.0-3ubuntu1.2
- 5.34.0-3ubuntu1.3
- 5.34.0-3ubuntu1.4
All versions (7)
- 5.34.0-3ubuntu1.5
- Affected ranges
- ECOSYSTEM: < 5.34.0-3ubuntu1.7
Update to 5.34.0-3ubuntu1.7
perl Ubuntu 24.04 LTS
- Versions
- 5.36.0-9ubuntu1
- 5.36.0-10ubuntu1
- 5.38.2-3
- 5.38.2-3.2
- 5.38.2-3.2build1
- 5.38.2-3.2build2
All versions (9)
- 5.38.2-3.2build2.1
- 5.38.2-3.2ubuntu0.1
- 5.38.2-3.2ubuntu0.2
- Affected ranges
- ECOSYSTEM: < 5.38.2-3.2ubuntu0.3
Update to 5.38.2-3.2ubuntu0.3
perl Ubuntu 25.10
- Versions
- 5.40.1-2
- 5.40.1-3
- 5.40.1-5
- 5.40.1-6
- 5.40.1-6build1
- Affected ranges
- ECOSYSTEM: < 5.40.1-6ubuntu0.1
Update to 5.40.1-6ubuntu0.1
perl Ubuntu 26.04 LTS
- Versions
- 5.40.1-6build1
- 5.40.1-7build1
- Affected ranges
- ECOSYSTEM: < 5.40.1-7ubuntu0.1
Update to 5.40.1-7ubuntu0.1
Original sources
- https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch
- https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes
- https://www.cve.org/CVERecord?id=CVE-2026-42497
- https://access.redhat.com/security/cve/CVE-2026-42496
- https://bugzilla.redhat.com/show_bug.cgi?id=2481314
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42496.json
- https://access.redhat.com/errata/RHSA-2026:30857
- https://access.redhat.com/errata/RHSA-2026:30851
- https://access.redhat.com/errata/RHSA-2026:30856
- https://access.redhat.com/errata/RHSA-2026:30852
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html
- https://nvd.nist.gov/vuln/detail/CVE-2026-42496