Summary
The GNU tar program can save multiple files in an archive and restore files from an archive.
Security Fix(es):
* tar: tar: Hidden file injection via crafted archives (CVE-2026-5704)
* tar: tar: TOCTOU in incremental dumpdir 'X' rename handling allows restore path escape (CVE-2026-18477)
* tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite (CVE-2026-18508)
Bug Fix(es) and Enhancement(s):
* tar: --one-top-level with absolute path fails [almalinux-9] (JIRA:AlmaLinux-144021)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Fixed packages 1
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux · 9 | tar | 2:1.34-13.el9_8 |
Vulnerabilities 3
-
Medium 5.0
Tar: tar: hidden file injection via crafted archives
A flaw was found in tar. A remote attacker could exploit this vulnerability by crafting a malicious archive, leading to hidden file injection with fully attacker-controlled content. This bypasses pre-extraction inspection mechanisms, potentially allowing an a…
-
Medium 4.4
Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
A TOCTOU (Time-of-Check Time-of-Use) vulnerability in GNU tar's incremental dumpdir 'X' rename handling allows a local attacker with write access to a directory being backed up to influence the restore process if the attacker has access to the system where th…
-
Medium 4.4
Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite
A flaw was found in GNU tar. When extracting an archive with the --one-top-level option, hardlink targets are not confined to the designated top-level directory and may resolve relative to the extraction working directory. A crafted archive can create hardlin…
References
-
report
https://access.redhat.com/security/cve/CVE-2026-18477
-
report
https://access.redhat.com/security/cve/CVE-2026-18508
-
report
https://access.redhat.com/security/cve/CVE-2026-5704
-
report
https://bugzilla.redhat.com/2455360
-
report
https://bugzilla.redhat.com/2509735
-
report
https://bugzilla.redhat.com/2509843
-
advisory
https://errata.almalinux.org/9/ALSA-2026-61581.html