cve.bz

CVE-2025-45582 gnu tar: Path Traversal: '../filedir'

4.1 mediumExploit referenceEPSS 0.5%

Medium (4.1) in gnu tar. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.1 medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-07-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-24 Path Traversal: '../filedir'
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-45582 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-45582?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-45582?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-45582 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU Tarthrough 1.35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTStar1.34+dfsg-1ubuntu0.1.22.04.4UBUNTU-CVE-2025-45582 USN-8510-1
Ubuntu24.04:LTStar1.35+dfsg-3ubuntu0.2UBUNTU-CVE-2025-45582 USN-8510-1
Ubuntu25.10, Pro:14.04:LTS, Pro:16.04:LTS and 2 moretarno fix listedUBUNTU-CVE-2025-45582
Ubuntu26.04:LTStar1.35+dfsg-4ubuntu0.2UBUNTU-CVE-2025-45582 USN-8510-1
Red Hatenterprise_linux:8::baseostar, tar-debuginfo, tar-debugsource2:1.30-13.el8_10RHSA-2026:70390
Red Hatenterprise_linux:9::baseostar, tar-debuginfo, tar-debugsource2:1.34-9.el9_7RHSA-2026:0067
Red Hatenterprise_linux:10.1tar, tar-debuginfo, tar-debugsource2:1.35-9.el10_1RHSA-2026:0002
Red Hatenterprise_linux_eus:10.0tar2:1.35-7.el10_0.2RHSA-2026:0135
Red Hatrhel_eus:9.4::baseostar, tar-debuginfo, tar-debugsource2:1.34-6.el9_4.3RHSA-2026:0434
Red Hatrhel_eus:9.6::baseostar2:1.34-7.el9_6.2RHSA-2026:0435
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 12 moretar1.34-150000.3.37.1SUSE-SU-2026:1177-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5tar1.34-15.27.1SUSE-SU-2026:2615-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0tar1.35-160000.3.1SUSE-SU-2026:21143-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0tar1.35-160000.4.1SUSE-SU-2026:22377-1
SUSELinux Micro 6.0tar1.35-3.1SUSE-SU-2026:20959-1
SUSELinux Micro 6.1tar1.35-slfo.1.1_3.1SUSE-SU-2026:20955-1
SUSELinux Micro 6.2tar1.35-160000.3.1SUSE-SU-2026:21002-1
SUSELinux Micro 6.2tar1.35-160000.4.1SUSE-SU-2026:22289-1
openSUSELeap 15.6tar1.34-150000.3.37.1SUSE-SU-2026:1177-1
openSUSELeap 16.0tar1.35-160000.3.1openSUSE-SU-2026:20472-1
openSUSELeap 16.0tar1.35-160000.4.1openSUSE-SU-2026:21070-1
openSUSETumbleweedtar1.35-7.1openSUSE-SU-2026:10743-1
AlmaLinux8tar2:1.30-13.el8_10ALSA-2026:70390
AlmaLinux9tar2:1.34-9.el9_7ALSA-2026:0067
AlmaLinux10tar2:1.35-9.el10_1ALSA-2026:0002
Rocky Linux8tar2:1.30-13.el8_10RLSA-2026:70390
Rocky Linux9tar2:1.34-9.el9_7RLSA-2026:0067
Rocky Linux10tar2:1.35-9.el10_1RLSA-2026:0002
Azure Linux2tarno fix listedAZL-65538
Azure Linux3tarno fix listedAZL-65082
Alpaquita23, streamtarno fix listedBELL-CVE-2025-45582

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Untrusted TAR archives should always be extracted in an empty directory. When multiple untrusted archives need to be extracted, the same directory must not be re-used without removing all content extracted form the previous archive before extracting the next archive.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10tar-2:1.35-9.el10_1Fixed 2026-01-05RHSA-2026:0002
Red Hat Enterprise Linux 10.0 Extended Update Supporttar-2:1.35-7.el10_0.2Fixed 2026-01-06RHSA-2026:0135
Red Hat Enterprise Linux 8tar-2:1.30-13.el8_10Fixed 2026-09-22RHSA-2026:70390
Red Hat Enterprise Linux 9tar-2:1.34-9.el9_7Fixed 2026-01-05RHSA-2026:0067
Red Hat Enterprise Linux 9.4 Extended Update Supporttar-2:1.34-6.el9_4.3Fixed 2026-01-12RHSA-2026:0434
Red Hat Enterprise Linux 9.6 Extended Update Supporttar-2:1.34-7.el9_6.2Fixed 2026-01-12RHSA-2026:0435
Red Hat Ceph Storage 7rhceph/rhceph-7-rhel9:1769508455Fixed 2026-02-03RHSA-2026:1858
Red Hat Ceph Storage 8rhceph/rhceph-8-rhel9:1769512383Fixed 2026-02-02RHSA-2026:1652
Red Hat Discovery 2discovery/discovery-server-rhel9:1767888970Fixed 2026-01-08RHSA-2026:0414
Red Hat Discovery 2discovery/discovery-ui-rhel9:1767904573Fixed 2026-01-08RHSA-2026:0414
Red Hat Update Infrastructure 5rhui5/cds-rhel9:1768221107Fixed 2026-01-15RHSA-2026:0685
Red Hat Update Infrastructure 5rhui5/haproxy-rhel9:1768221100Fixed 2026-01-15RHSA-2026:0685
Red Hat Update Infrastructure 5rhui5/installer-rhel9:1768296285Fixed 2026-01-15RHSA-2026:0685
Red Hat Update Infrastructure 5rhui5/rhua-rhel9:1768377012Fixed 2026-01-15RHSA-2026:0685
Red Hat Enterprise Linux 6tarOut of support scope
Red Hat Enterprise Linux 7tarFix deferred
Red Hat Fuse 7io.syndesis-syndesis-uiFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-45582.

References

Check your stackJSON