Skip to main content
EPSS 0.4%top 62%

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

0
High
Published: 07/11/2025 (07/11/2025, 17:15:00 UTC)
Source: GCVE Database
Product: tar

Description

GNU Tar versions through 1.35 are vulnerable to a file overwrite attack via directory traversal using a two-step extraction process. An attacker can first extract a TAR archive containing a symlink with a relative path to a critical directory, then extract a second archive that uses the symlink path to overwrite critical files. This bypasses the usual protection against '..' in member names within a single archive. This vulnerability can affect server applications or installation processes that automatically extract multiple user-supplied TAR archives into the same directory.

CVSS v3.1

Score 4.1medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+esm7?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=1.26+dfsg-8=1.27-3=1.27-4=1.27.1-1=1.27.1-1ubuntu0.1=1.27.1-1ubuntu0.1+esm1=1.27.1-1ubuntu0.1+esm2=1.27.1-1ubuntu0.1+esm3=1.27.1-1ubuntu0.1+esm4=1.27.1-1ubuntu0.1+esm5=1.27.1-1ubuntu0.1+esm6=1.27.1-1ubuntu0.1+esm7
Ubuntu:Pro:16.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+esm6?arch=source&distro=esm-infra-legacy/xenial
Affected versions
=1.27.1-2=1.28-2ubuntu1=1.28-2.1=1.28-2.1ubuntu0.1=1.28-2.1ubuntu0.2=1.28-2.1ubuntu0.2+esm1=1.28-2.1ubuntu0.2+esm2=1.28-2.1ubuntu0.2+esm3=1.28-2.1ubuntu0.2+esm4=1.28-2.1ubuntu0.2+esm5=1.28-2.1ubuntu0.2+esm6
Ubuntu:Pro:18.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+esm4?arch=source&distro=esm-infra/bionic
Affected versions
=1.29b-2=1.29b-2ubuntu0.1=1.29b-2ubuntu0.2=1.29b-2ubuntu0.3=1.29b-2ubuntu0.4=1.29b-2ubuntu0.4+esm1=1.29b-2ubuntu0.4+esm2=1.29b-2ubuntu0.4+esm3=1.29b-2ubuntu0.4+esm4
Ubuntu:Pro:20.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+dfsg-7ubuntu0.20.04.4+esm3?arch=source&distro=esm-infra/focal
Affected versions
=1.30+dfsg-6=1.30+dfsg-7=1.30+dfsg-7ubuntu0.20.04.1=1.30+dfsg-7ubuntu0.20.04.2=1.30+dfsg-7ubuntu0.20.04.3=1.30+dfsg-7ubuntu0.20.04.4=1.30+dfsg-7ubuntu0.20.04.4+esm1=1.30+dfsg-7ubuntu0.20.04.4+esm2=1.30+dfsg-7ubuntu0.20.04.4+esm3
Ubuntu:22.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+dfsg-1ubuntu0.1.22.04.4?arch=source&distro=jammy
Affected versions
<1.34+dfsg-1ubuntu0.1.22.04.4=1.34+dfsg-1build1=1.34+dfsg-1build2=1.34+dfsg-1build3=1.34+dfsg-1ubuntu0.1.22.04.1=1.34+dfsg-1ubuntu0.1.22.04.2=1.34+dfsg-1ubuntu0.1.22.04.3
Ubuntu:24.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+dfsg-3ubuntu0.2?arch=source&distro=noble
Affected versions
<1.35+dfsg-3ubuntu0.2=1.34+dfsg-1.2ubuntu1=1.34+dfsg-1.2ubuntu2=1.34+dfsg-1.3ubuntu1=1.34+dfsg-1.4=1.35+dfsg-2~build1=1.35+dfsg-2=1.35+dfsg-3=1.35+dfsg-3build1=1.35+dfsg-3ubuntu0.1
Ubuntu:25.10more threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+dfsg-3.1build1?arch=source&distro=questing
Affected versions
=1.35+dfsg-3.1=1.35+dfsg-3.1build1
Ubuntu:26.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+dfsg-4ubuntu0.2?arch=source&distro=resolute
Affected versions
<1.35+dfsg-4ubuntu0.2=1.35+dfsg-3.1build1=1.35+dfsg-3.1build2=1.35+dfsg-4=1.35+dfsg-4ubuntu0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 23:57:07 UTC

Technical Analysis

GNU Tar through version 1.35 allows an attacker to overwrite files by exploiting directory traversal in a crafted TAR archive extraction process involving two steps. The first archive creates a symlink pointing to a critical directory using a relative path containing '..'. The second archive contains a file path starting with the symlink name and ending with a critical file name. When extracted sequentially into the same directory, the second extraction follows the symlink and overwrites the critical file, bypassing protections that block '..' in a single archive. This affects scenarios where multiple TAR archives are extracted into the same directory, such as automated server or package installation workflows.

Potential Impact

The vulnerability allows an attacker to overwrite critical files on the victim system by leveraging a two-step TAR extraction process involving directory traversal via symlinks. This can lead to integrity violations and potential denial of service if critical files are overwritten. The attack requires user interaction to extract two separate archives sequentially and cannot be performed by a single archive due to existing protections. There is no indication of confidentiality or availability impact beyond file overwrite.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid extracting multiple TAR archives sequentially into the same directory if the archives are untrusted. Review extraction workflows to prevent symlink-based directory traversal attacks. Consider extracting archives into isolated directories and verifying archive contents before extraction.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2025-45582
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6a6151239c2644c7f8da6240

Added to database: 07/22/2026, 23:24:19 UTC

Last enriched: 07/22/2026, 23:57:07 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 97

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses