Tar: tar: hidden file injection via crafted archives
To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle
AI Analysis
Technical Summary
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.
Tar: tar: hidden file injection via crafted archives
Description
To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle
Affected software
pkg:deb/ubuntu/[email protected]+esm7?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/[email protected]+esm6?arch=source&distro=esm-infra-legacy/xenialpkg:deb/ubuntu/[email protected]+esm4?arch=source&distro=esm-infra/bionicpkg:deb/ubuntu/[email protected]+dfsg-7ubuntu0.20.04.4+esm3?arch=source&distro=esm-infra/focalpkg:deb/ubuntu/[email protected]+dfsg-1ubuntu0.1.22.04.6?arch=source&distro=jammypkg:deb/ubuntu/[email protected]+dfsg-3ubuntu0.4?arch=source&distro=noblepkg:deb/ubuntu/[email protected]+dfsg-3.1build1?arch=source&distro=questingpkg:deb/ubuntu/[email protected]+dfsg-4ubuntu0.4?arch=source&distro=resoluteRun 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.