CVEfocus › CVE database › CVE-2026-5704

CVE-2026-5704Tar: tar: hidden file injection via crafted archives

CVSS 5.0 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2026-04-06Updated 2026-11-05Assigner: redhat

A flaw was found in tar. A remote attacker could exploit this vulnerability by crafting a malicious archive, leading to hidden file injection with fully attacker-controlled content. This bypasses pre-extraction inspection mechanisms, potentially allowing an attacker to introduce malicious files onto a system without detection.

CWE-434

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
9Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04tarFixed1.35+dfsg-4ubuntu0.4UBUNTU-CVE-2026-5704
Ubuntu 25.10tarWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5704
Ubuntu 24.04tarFixed1.35+dfsg-3ubuntu0.4UBUNTU-CVE-2026-5704
Ubuntu 22.04tarFixed1.34+dfsg-1ubuntu0.1.22.04.6UBUNTU-CVE-2026-5704
Ubuntu 20.04tarFix pending1.30+dfsg-7ubuntu0.20.04.4+esm3 (Ubuntu Pro)UBUNTU-CVE-2026-5704
Ubuntu 18.04tarFix pending1.29b-2ubuntu0.4+esm4 (Ubuntu Pro)UBUNTU-CVE-2026-5704
Ubuntu 16.04tarFix pending1.28-2.1ubuntu0.2+esm6 (Ubuntu Pro)UBUNTU-CVE-2026-5704
Ubuntu 14.04tarFix pending1.27.1-1ubuntu0.1+esm7 (Ubuntu Pro)UBUNTU-CVE-2026-5704
Debian 14tarFix pendingDEBIAN-CVE-2026-5704
Debian 13tarFix pendingDEBIAN-CVE-2026-5704
Debian 12tarFix pendingDEBIAN-CVE-2026-5704
Red Hat Enterprise Linux 10tarFixed2:1.35-13.el10_2RHSA-2026:61586
Red Hat Enterprise Linux 9tarFixed2:1.34-13.el9_8RHSA-2026:61581
Red Hat Enterprise Linux 8tarFixed2:1.30-13.el8_10RHSA-2026:70390
Red Hat Enterprise Linux 7tarFix pending
Fix deferred
Red Hat Enterprise Linux 6tarFix pending
Fix deferred
AlmaLinux 10tarFixed2:1.35-13.el10_2ALSA-2026:61586
AlmaLinux 9tarFixed2:1.34-13.el9_8ALSA-2026:61581
AlmaLinux 8tarFixed2:1.30-13.el8_10ALSA-2026:70390
Rocky Linux 10tarFixed2:1.35-13.el10_2RLSA-2026:61586
Rocky Linux 9tarFixed2:1.34-13.el9_8RLSA-2026:61581
Rocky Linux 8tarFixed2:1.30-13.el8_10RLSA-2026:70390

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: To mitigate this issue, avoid extracting archives from untrusted sources. If processing untrusted archives is necessary, do so within a sandboxed environment to limit potential impact.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.