CVE-2025-45582
Fixed in a distro release EPSS <1%CVSS 4.1
GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.
Products: gnu tar
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 10 | tar | 2:1.35-9.el10_1 |
| AlmaLinux 8 | tar | 2:1.30-13.el8_10 |
| AlmaLinux 9 | tar | 2:1.34-9.el9_7 |
| Red Hat Enterprise Linux 10.1 | tar | 2:1.35-9.el10_1 |
| Red Hat Enterprise Linux 10.1 | tar-debuginfo | 2:1.35-9.el10_1 |
| Red Hat Enterprise Linux 10.1 | tar-debugsource | 2:1.35-9.el10_1 |
| Red Hat Enterprise Linux 8 | tar | 2:1.30-13.el8_10 |
| Red Hat Enterprise Linux 8 | tar-debuginfo | 2:1.30-13.el8_10 |
| Red Hat Enterprise Linux 8 | tar-debugsource | 2:1.30-13.el8_10 |
| Red Hat Enterprise Linux 9 | tar | 2:1.34-9.el9_7 |
| Red Hat Enterprise Linux 9 | tar-debuginfo | 2:1.34-9.el9_7 |
| Red Hat Enterprise Linux 9 | tar-debugsource | 2:1.34-9.el9_7 |
| Red Hat Enterprise Linux eus 10.0 | tar | 2:1.35-7.el10_0.2 |
| Red Hat rhel eus 9.4 | tar | 2:1.34-6.el9_4.3 |
| Red Hat rhel eus 9.4 | tar-debuginfo | 2:1.34-6.el9_4.3 |
| Red Hat rhel eus 9.4 | tar-debugsource | 2:1.34-6.el9_4.3 |
| Red Hat rhel eus 9.6 | tar | 2:1.34-7.el9_6.2 |
| Rocky Linux 10 | tar | 2:1.35-9.el10_1 |
| Rocky Linux 8 | tar | 2:1.30-13.el8_10 |
| Rocky Linux 9 | tar | 2:1.34-9.el9_7 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Micro 5.2 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Micro 5.3 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Micro 5.4 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Micro 5.5 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | tar | 1.34-15.27.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Server 16.0 | tar | 1.35-160000.3.1 |
| SUSE Linux Enterprise Server 16.0 | tar | 1.35-160000.4.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | tar | 1.34-15.27.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | tar | 1.34-150000.3.37.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | tar | 1.35-160000.4.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | tar | 1.35-160000.3.1 |
| SUSE Linux Micro 6.0 | tar | 1.35-3.1 |
| SUSE Linux Micro 6.1 | tar | 1.35-slfo.1.1_3.1 |
| SUSE Linux Micro 6.2 | tar | 1.35-160000.3.1 |
| SUSE Linux Micro 6.2 | tar | 1.35-160000.4.1 |
| Ubuntu 22.04 LTS | tar | 1.34+dfsg-1ubuntu0.1.22.04.4 |
| Ubuntu 24.04 LTS | tar | 1.35+dfsg-3ubuntu0.2 |
| Ubuntu 25.10 | tar | no fix |
| Ubuntu 26.04 LTS | tar | 1.35+dfsg-4ubuntu0.2 |
| Ubuntu Pro 14.04 LTS | tar | no fix |
| Ubuntu Pro 16.04 LTS | tar | no fix |
| Ubuntu Pro 18.04 LTS | tar | no fix |
| Ubuntu Pro 20.04 LTS | tar | no fix |
| openSUSE Leap 15.6 | tar | 1.34-150000.3.37.1 |
| openSUSE Leap 16.0 | tar | 1.35-160000.4.1 |
| openSUSE Leap 16.0 | tar | 1.35-160000.3.1 |
| openSUSE Tumbleweed | tar | 1.35-7.1 |