CPANSA-Archive-Tar-2026-42496: Archive-Tar vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-05-26T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-05-26T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 9.1 | Severity | |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
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.
Vulnerabilities
CVE-2026-42496
Vulnerability 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.
| Weakness | CWE-59 : Improper Link Resolution Before File Access ('Link Following') |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Archive-Tar less than 3.08 |
|
Fixed
- Archive-Tar greater than or equal 3.08
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Archive-Tar-2026-42496 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-archive-tar-2026-42496.json - https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch external
https://github.com/jib/archive-tar-new/commit/17c873492a05eddc0de18c1485e0b2cccd5a9158.patch - https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes external
https://metacpan.org/release/BINGOS/Archive-Tar-3.08/changes - https://www.cve.org/CVERecord?id=CVE-2026-42497 external
https://www.cve.org/CVERecord?id=CVE-2026-42497 - CVE-2026-42496 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-42496
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Tue May 26 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/