Skip to main content
EPSS 0.4%top 66%

Tar: tar: hidden file injection via crafted archives

0
Medium
Published: 09/02/2026 (09/02/2026, 01:03:03 UTC)
Source: GCVE Database
Vendor/Project: Microsoft Security Response Center
Product: Microsoft

Description

To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle

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.27.1-1ubuntu0.1+esm7=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
Ubuntu:Pro:16.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+esm6?arch=source&distro=esm-infra-legacy/xenial
Affected versions
<1.28-2.1ubuntu0.2+esm6=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
Ubuntu:Pro:18.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+esm4?arch=source&distro=esm-infra/bionic
Affected versions
<1.29b-2ubuntu0.4+esm4=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
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-7ubuntu0.20.04.4+esm3=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
Ubuntu:22.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+dfsg-1ubuntu0.1.22.04.6?arch=source&distro=jammy
Affected versions
<1.34+dfsg-1ubuntu0.1.22.04.6=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=1.34+dfsg-1ubuntu0.1.22.04.4=1.34+dfsg-1ubuntu0.1.22.04.5
Ubuntu:24.04:LTSmore threats →ghsa
tar
pkg:deb/ubuntu/[email protected]+dfsg-3ubuntu0.4?arch=source&distro=noble
Affected versions
<1.35+dfsg-3ubuntu0.4=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=1.35+dfsg-3ubuntu0.2=1.35+dfsg-3ubuntu0.3
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.4?arch=source&distro=resolute
Affected versions
<1.35+dfsg-4ubuntu0.4=1.35+dfsg-3.1build1=1.35+dfsg-3.1build2=1.35+dfsg-4=1.35+dfsg-4ubuntu0.1=1.35+dfsg-4ubuntu0.2=1.35+dfsg-4ubuntu0.3

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: 09/10/2026, 22:43:45 UTC

Technical Analysis

CVE-2026-5704 describes a flaw in the tar archive utility where crafted archive files can cause hidden file injection with fully attacker-controlled content. This vulnerability bypasses pre-extraction inspection mechanisms, allowing an attacker to introduce malicious files onto a system undetected. The issue affects numerous specific versions of tar in Ubuntu and Red Hat distributions. The vulnerability has been assigned a CVSS 3.1 base score of 5.0 (medium severity) with an attack vector of local, low complexity, requiring low privileges and user interaction. Both Red Hat and Ubuntu have published advisories with available patches to remediate the issue.

Potential Impact

The vulnerability allows an attacker with local access to craft malicious tar archives that inject hidden files containing attacker-controlled content, bypassing inspection mechanisms before extraction. This can lead to unauthorized modification of system files or introduction of malicious files, impacting system integrity. There is no direct confidentiality or availability impact reported. The flaw requires local access and user interaction to exploit.

Mitigation Recommendations

Apply the official patches provided by Red Hat and Ubuntu to affected tar package versions. Avoid extracting archives from untrusted sources. If processing untrusted archives is necessary, perform extraction within sandboxed environments to limit potential impact. Standard system updates on affected distributions will include the necessary fixes.

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-2026-5704
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
State
PUBLISHED

Threat ID: 6a6151239c2644c7f8da6222

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

Last enriched: 09/10/2026, 22:43:45 UTC

Last updated: 09/14/2026, 22:01:35 UTC

Views: 141

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.

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