CVEfocus › CVE database › CVE-2025-45582

CVE-2025-45582

CVSS 4.1 MediumEPSS 0.5% (higher than 36% of CVEs)Published 2025-07-11Updated 2025-11-02Assigner: mitre

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.

CWE-24

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
5Fix pending
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04tarFixed1.35+dfsg-4ubuntu0.2UBUNTU-CVE-2025-45582
Ubuntu 25.10tarWill not fix
Upstream tar developers have stated that is is working as documented: https://lists.gnu.org/archive/html/bug-tar/2025-08/msg00012.html List of commits below…
UBUNTU-CVE-2025-45582
Ubuntu 24.04tarFixed1.35+dfsg-3ubuntu0.2UBUNTU-CVE-2025-45582
Ubuntu 22.04tarFixed1.34+dfsg-1ubuntu0.1.22.04.4UBUNTU-CVE-2025-45582
Ubuntu 20.04tarFix pendingUBUNTU-CVE-2025-45582
Ubuntu 18.04tarFix pendingUBUNTU-CVE-2025-45582
Ubuntu 16.04tarFix pendingUBUNTU-CVE-2025-45582
Ubuntu 14.04tarFix pendingUBUNTU-CVE-2025-45582
Red Hat Enterprise Linux 10tarFixed2:1.35-9.el10_1RHSA-2026:0002
Red Hat Enterprise Linux 9tarFixed2:1.34-9.el9_7RHSA-2026:0067
Red Hat Enterprise Linux 8tarFixed2:1.30-13.el8_10RHSA-2026:70390
Red Hat Enterprise Linux 7tarFix pending
Fix deferred
Red Hat Enterprise Linux 6tarWill not fix
Out of support scope
AlmaLinux 10tarFixed2:1.35-9.el10_1ALSA-2026:0002
AlmaLinux 9tarFixed2:1.34-9.el9_7ALSA-2026:0067
AlmaLinux 8tarFixed2:1.30-13.el8_10ALSA-2026:70390
Rocky Linux 10tarFixed2:1.35-9.el10_1RLSA-2026:0002
Rocky Linux 9tarFixed2:1.34-9.el9_7RLSA-2026:0067
Rocky Linux 8tarFixed2:1.30-13.el8_10RLSA-2026:70390

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.