Description
Archive::Tar versions before 3.08 for Perl extract hardlinks to attacker controlled paths outside the extraction directory.
_make_special_file() passes the tar header's linkname to link() without validating it against absolute paths or .. segments, creating a hardlink that shares the victim file's inode.
A subsequent write through the extracted name modifies the victim file, and the post-extraction chmod, chown, and utime block in _extract_file() (guarded only against symlinks via -l) applies the tar header's mode, owner, and timestamps to the shared inode during extraction alone.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| BINGOS | Archive::Tar | < 3.08 | 3.08 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | perl | 5.42.3-1 | — |
| Debian 13 | perl | 5.40.1-6+deb13u1 | — |
| Debian 12 | perl | 5.36.0-7+deb12u4 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | perl | No fix yet | — |
| Ubuntu 25.10 | perl | No fix yet | — |
| Ubuntu 24.04 LTS | perl | 5.38.2-3.2ubuntu0.3 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | perl | No fix yet | — |
| Ubuntu Pro 18.04 LTS | perl | No fix yet | — |
| Ubuntu Pro 16.04 LTS | perl | No fix yet | — |
| Ubuntu Pro 14.04 LTS | perl | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | perl | 5.42.3-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | perl-Archive-Tar +1 | 3.04-522.amzn2023.0.3 | ALAS2023-2026-1805 |
| Amazon Linux 2 | perl-Archive-Tar | 1.92-3.amzn2.0.2 | ALAS2-2026-3347 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | perl | 5.38.2-510 | — |
Advisories 4
- SSA-457936 SSA-457936: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.7 Siemens ProductCERT · Nov 10, 2026
- WID-SEC-2026-2666 cPanel cPanel/WHM (Archive-Tar): Mehrere Schwachstellen ermöglichen Manipulation von Dateien BSI CERT-Bund (WID) · Aug 6, 2026
- ALAS2-2026-3347 Important: perl-Archive-Tar security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jun 8, 2026
- ALAS2023-2026-1805 Important: perl-Archive-Tar security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 8, 2026