Skip to content
OpenAdvisories
Medium · 4.1 CVE-2025-45582 EUVD-2025-21178GHSA-f93m-9mq4-2fjj

GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the vic…

Published Jul 11, 2025 · Updated Nov 2, 2025 · Assigned by mitre

Description

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.

Affected products

VendorProductAffectedFixed
GNU Tar ≤ 1.35 —

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.

ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS tar 1.35+dfsg-4ubuntu0.2 USN-8510-1
Ubuntu 25.10 tar No fix yet —
Ubuntu 24.04 LTS tar 1.35+dfsg-3ubuntu0.2 USN-8510-1
Ubuntu 22.04 LTS tar 1.34+dfsg-1ubuntu0.1.22.04.4 USN-8510-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS tar No fix yet —
Ubuntu Pro 18.04 LTS tar No fix yet —
Ubuntu Pro 16.04 LTS tar No fix yet —
Ubuntu Pro 14.04 LTS tar No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 tar 2:1.35-9.el10_1 RHSA-2026:0002
RHEL 9 tar 2:1.34-9.el9_7 RHSA-2026:0067
RHEL 8 tar 2:1.30-13.el8_10 RHSA-2026:70390
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS tar 2:1.35-7.el10_0.2 RHSA-2026:0135
RHEL 9.6 EUS tar 2:1.34-7.el9_6.2 RHSA-2026:0435
RHEL 9.4 EUS tar 2:1.34-6.el9_4.3 RHSA-2026:0434

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 tar 2:1.35-9.el10_1 ALSA-2026:0002
AlmaLinux 9 tar 2:1.34-9.el9_7 ALSA-2026:0067
AlmaLinux 8 tar 2:1.30-13.el8_10 ALSA-2026:70390

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 tar 2:1.35-9.el10_1 RLSA-2026:0002
Rocky Linux 9 tar 2:1.34-9.el9_7 RLSA-2026:0067
Rocky Linux 8 tar 2:1.30-13.el8_10 RLSA-2026:70390
ReleasePackageFixed inAdvisory
SLES 15 SP7 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLES 15 SP6 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLES 15 SP5 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLES 15 SP4 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLES 12 SP5 tar 1.34-15.27.1 SUSE-SU-2026:2615-1
Show 14 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 tar 1.35-160000.3.1 SUSE-SU-2026:22377-1, SUSE-SU-2026:21143-1
SLES for SAP 15 SP6 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLES for SAP 15 SP5 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLES for SAP 15 SP4 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLES 16.0 tar 1.35-160000.3.1 SUSE-SU-2026:22377-1, SUSE-SU-2026:21143-1
SLE Micro 6.2 tar 1.35-160000.3.1 SUSE-SU-2026:22289-1, SUSE-SU-2026:21002-1
SLE Micro 6.1 tar 1.35-slfo.1.1_3.1 SUSE-SU-2026:20955-1
SLE Micro 6.0 tar 1.35-3.1 SUSE-SU-2026:20959-1
SLE Micro 5.5 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLE Micro 5.4 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLE Micro 5.3 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLE Micro 5.2 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLE HPC 15 SP5 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
SLE HPC 15 SP4 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tar 1.35-7.1 openSUSE-SU-2026:10743-1
openSUSE Leap 16.0 tar 1.35-160000.3.1 openSUSE-SU-2026:21070-1, openSUSE-SU-2026:20472-1
openSUSE Leap 15.6 tar 1.34-150000.3.37.1 SUSE-SU-2026:1177-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 tar No fix yet —
Azure Linux 2 (CBL-Mariner) tar No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 tar 2:1.35-9.el10_1 ELSA-2026-0002
Oracle Linux 9 tar 2:1.34-9.el9_7 ELSA-2026-0067
Oracle Linux 8 tar 2:1.30-13.el8_10 ELSA-2026-70390

Advisories 30

References