{"id":"UBUNTU-CVE-2026-42496","details":"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.","modified":"2026-07-01T19:05:22.215740498Z","published":"2026-05-26T02:16:00Z","related":["USN-8467-1"],"upstream":["CVE-2026-42496"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-42496"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-42496"},{"type":"REPORT","url":"https://lists.security.metacpan.org/cve-announce/msg/40396459/"},{"type":"REPORT","url":"https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch"},{"type":"REPORT","url":"https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-42497"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8467-1"}],"affected":[{"package":{"name":"perl","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/perl?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.18.2-2ubuntu1.7+esm7"}]}],"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","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"],"ecosystem_specific":{"binaries":[{"binary_name":"libcgi-fast-perl","binary_version":"5.18.2-2ubuntu1.7+esm7"},{"binary_version":"5.18.2-2ubuntu1.7+esm7","binary_name":"libperl5.18"},{"binary_version":"5.18.2-2ubuntu1.7+esm7","binary_name":"perl"},{"binary_name":"perl-base","binary_version":"5.18.2-2ubuntu1.7+esm7"},{"binary_name":"perl-debug","binary_version":"5.18.2-2ubuntu1.7+esm7"},{"binary_name":"perl-modules","binary_version":"5.18.2-2ubuntu1.7+esm7"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42496.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/perl?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.26.1-6ubuntu0.7+esm2"}]}],"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","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"],"ecosystem_specific":{"binaries":[{"binary_version":"5.26.1-6ubuntu0.7+esm2","binary_name":"libperl5.26"},{"binary_name":"perl","binary_version":"5.26.1-6ubuntu0.7+esm2"},{"binary_version":"5.26.1-6ubuntu0.7+esm2","binary_name":"perl-base"},{"binary_name":"perl-debug","binary_version":"5.26.1-6ubuntu0.7+esm2"},{"binary_name":"perl-modules-5.26","binary_version":"5.26.1-6ubuntu0.7+esm2"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42496.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/perl?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.30.0-9ubuntu0.5+esm2"}]}],"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","5.30.0-9ubuntu0.4","5.30.0-9ubuntu0.5"],"ecosystem_specific":{"binaries":[{"binary_version":"5.30.0-9ubuntu0.5+esm2","binary_name":"libperl5.30"},{"binary_name":"perl","binary_version":"5.30.0-9ubuntu0.5+esm2"},{"binary_name":"perl-base","binary_version":"5.30.0-9ubuntu0.5+esm2"},{"binary_name":"perl-debug","binary_version":"5.30.0-9ubuntu0.5+esm2"},{"binary_name":"perl-modules-5.30","binary_version":"5.30.0-9ubuntu0.5+esm2"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42496.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-3ubuntu1.7"}]}],"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","5.34.0-3ubuntu1.5"],"ecosystem_specific":{"binaries":[{"binary_name":"libperl5.34","binary_version":"5.34.0-3ubuntu1.7"},{"binary_name":"perl","binary_version":"5.34.0-3ubuntu1.7"},{"binary_version":"5.34.0-3ubuntu1.7","binary_name":"perl-base"},{"binary_name":"perl-debug","binary_version":"5.34.0-3ubuntu1.7"},{"binary_version":"5.34.0-3ubuntu1.7","binary_name":"perl-modules-5.34"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42496.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.38.2-3.2ubuntu0.3"}]}],"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","5.38.2-3.2build2.1","5.38.2-3.2ubuntu0.1","5.38.2-3.2ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"5.38.2-3.2ubuntu0.3","binary_name":"libperl5.38t64"},{"binary_name":"perl","binary_version":"5.38.2-3.2ubuntu0.3"},{"binary_version":"5.38.2-3.2ubuntu0.3","binary_name":"perl-base"},{"binary_version":"5.38.2-3.2ubuntu0.3","binary_name":"perl-debug"},{"binary_name":"perl-modules-5.38","binary_version":"5.38.2-3.2ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42496.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.40.1-6ubuntu0.1"}]}],"versions":["5.40.1-2","5.40.1-3","5.40.1-5","5.40.1-6","5.40.1-6build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libperl5.40","binary_version":"5.40.1-6ubuntu0.1"},{"binary_version":"5.40.1-6ubuntu0.1","binary_name":"perl"},{"binary_version":"5.40.1-6ubuntu0.1","binary_name":"perl-base"},{"binary_version":"5.40.1-6ubuntu0.1","binary_name":"perl-debug"},{"binary_name":"perl-modules-5.40","binary_version":"5.40.1-6ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42496.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.40.1-7ubuntu0.1"}]}],"versions":["5.40.1-6build1","5.40.1-7build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libperl5.40","binary_version":"5.40.1-7ubuntu0.1"},{"binary_name":"perl","binary_version":"5.40.1-7ubuntu0.1"},{"binary_name":"perl-base","binary_version":"5.40.1-7ubuntu0.1"},{"binary_name":"perl-debug","binary_version":"5.40.1-7ubuntu0.1"},{"binary_version":"5.40.1-7ubuntu0.1","binary_name":"perl-modules-5.40"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42496.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}