CVE-2025-45582
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | tar | Fixed | 1.35+dfsg-4ubuntu0.2 | UBUNTU-CVE-2025-45582 |
| Ubuntu 25.10 | tar | Will 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.04 | tar | Fixed | 1.35+dfsg-3ubuntu0.2 | UBUNTU-CVE-2025-45582 |
| Ubuntu 22.04 | tar | Fixed | 1.34+dfsg-1ubuntu0.1.22.04.4 | UBUNTU-CVE-2025-45582 |
| Ubuntu 20.04 | tar | Fix pending | UBUNTU-CVE-2025-45582 | |
| Ubuntu 18.04 | tar | Fix pending | UBUNTU-CVE-2025-45582 | |
| Ubuntu 16.04 | tar | Fix pending | UBUNTU-CVE-2025-45582 | |
| Ubuntu 14.04 | tar | Fix pending | UBUNTU-CVE-2025-45582 | |
| Red Hat Enterprise Linux 10 | tar | Fixed | 2:1.35-9.el10_1 | RHSA-2026:0002 |
| Red Hat Enterprise Linux 9 | tar | Fixed | 2:1.34-9.el9_7 | RHSA-2026:0067 |
| Red Hat Enterprise Linux 8 | tar | Fixed | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux 7 | tar | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | tar | Will not fix Out of support scope | ||
| AlmaLinux 10 | tar | Fixed | 2:1.35-9.el10_1 | ALSA-2026:0002 |
| AlmaLinux 9 | tar | Fixed | 2:1.34-9.el9_7 | ALSA-2026:0067 |
| AlmaLinux 8 | tar | Fixed | 2:1.30-13.el8_10 | ALSA-2026:70390 |
| Rocky Linux 10 | tar | Fixed | 2:1.35-9.el10_1 | RLSA-2026:0002 |
| Rocky Linux 9 | tar | Fixed | 2:1.34-9.el9_7 | RLSA-2026:0067 |
| Rocky Linux 8 | tar | Fixed | 2:1.30-13.el8_10 | RLSA-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.
- GNU Tar: affected: up to 1.35
References
- https://github.com/i900008/vulndb/blob/main/Gnu_tar_vuln.md
- https://www.gnu.org/software/tar/
- https://www.gnu.org/software/tar/manual/html_node/Security-rules-of-thumb.html
- https://www.gnu.org/software/tar/manual/html_node/Integrity.html
- https://lists.gnu.org/archive/html/bug-tar/2025-08/msg00012.html
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.