CVE-2025-45582: GNU Tar · Path Traversal: '../filedir'
Affects GNU TarSource CVE Database V5
Not known to be exploited · CVSS 4.1 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 11 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| GNU Tar | Affected
| Fixed in– |
AI-suggested
To mitigate CVE-2025-45582, European organizations should: 1) Avoid extracting multiple TAR archives into the same directory without cleaning or isolating the extraction environment between extractions. 2) Upgrade GNU Tar to a patched version once available that addresses this symlink traversal issue. 3) Implement strict validation of TAR archive contents before extraction, including checking for symbolic links and relative paths that could lead outside the intended extraction directory. 4) Use containerized or sandboxed environments for extracting untrusted archives to limit filesystem impact. 5) Employ file integrity monitoring on critical directories (e.g., ~/.ssh) to detect unauthorized modifications. 6) Where possible, replace automated extraction of user-supplied TAR files with more secure package management or artifact verification mechanisms. 7) Educate system administrators and developers about the risks of repeated 'tar xf' commands on untrusted archives and encourage following official GNU Tar security guidelines. 8) Monitor logs and audit extraction activities for suspicious patterns indicating attempted exploitation.
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.
References
- github.com/i900008/vulndb/blob/main/Gnu_tar_vuln.md (opens in a new tab)
- gnu.org/software/tar/ (opens in a new tab)
- gnu.org/software/tar/manual/html_node/Security-rules-of-thumb.html (opens in a new tab)
- gnu.org/software/tar/manual/html_node/Integrity.html (opens in a new tab)
- lists.gnu.org/archive/html/bug-tar/2025-08/msg00012.html (opens in a new tab)
- openwall.com/lists/oss-security/2025/11/01/6 (opens in a new tab)