Vulnerability · Published Apr 6, 2026 · Assigned by redhat
CVE-2026-5704Tar: tar: hidden file injection via crafted archives
Medium 5.0
In plain English
A medium-severity unrestricted file upload in Red Hat Discovery 2 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | tar | 2:1.35-13.el10_2 | ALSA-2026:61586 |
| AlmaLinux:8 | tar | 2:1.30-13.el8_10 | ALSA-2026:70390 |
| AlmaLinux:9 | tar | 2:1.34-13.el9_8 | ALSA-2026:61581 |
| Debian:12 | tar | no fix listed | DEBIAN-CVE-2026-5704 |
| Debian:13 | tar | no fix listed | DEBIAN-CVE-2026-5704 |
| Debian:14 | tar | no fix listed | DEBIAN-CVE-2026-5704 |
| Rocky Linux:10 | tar | 2:1.35-13.el10_2 | RLSA-2026:61586 |
| Rocky Linux:8 | tar | 2:1.30-13.el8_10 | RLSA-2026:70390 |
| Rocky Linux:9 | tar | 2:1.34-13.el9_8 | RLSA-2026:61581 |
| Ubuntu:22.04:LTS | tar | 1.34+dfsg-1ubuntu0.1.22.04.6 | UBUNTU-CVE-2026-5704 |
| Ubuntu:22.04:LTS | tar | 1.34+dfsg-1ubuntu0.1.22.04.5 | USN-8477-2 |
| Ubuntu:22.04:LTS | tar | 1.34+dfsg-1ubuntu0.1.22.04.6 | USN-8477-3 |
| Ubuntu:24.04:LTS | tar | 1.35+dfsg-3ubuntu0.4 | USN-8477-3 |
| Ubuntu:24.04:LTS | tar | 1.35+dfsg-3ubuntu0.3 | USN-8477-2 |
| Ubuntu:24.04:LTS | tar | 1.35+dfsg-3ubuntu0.4 | UBUNTU-CVE-2026-5704 |
| Ubuntu:25.10 | tar | no fix listed | UBUNTU-CVE-2026-5704 |
| Ubuntu:26.04:LTS | tar | 1.35+dfsg-4ubuntu0.4 | USN-8477-3 |
| Ubuntu:26.04:LTS | tar | 1.35+dfsg-4ubuntu0.3 | USN-8477-2 |
| Ubuntu:26.04:LTS | tar | 1.35+dfsg-4ubuntu0.4 | UBUNTU-CVE-2026-5704 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Discovery 2 | see references |
| Red Hat | Red Hat Hardened Images | see references |
| Red Hat | Red Hat Update Infrastructure 5 | see references |
| Red Hat | Red Hat Update Infrastructure 5 | see references |
| Red Hat | Red Hat Update Infrastructure 5 | see references |
| Red Hat | Red Hat Update Infrastructure 5 | see references |
| Red Hat | Red Hat Update Infrastructure 5 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
Weakness: CWE-434 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
References
- RHSA-2026:61581 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:61586 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:61783 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:66018 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:66514 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:70390 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-5704 vdb-entry, x_refsource_REDHAT
- RHBZ#2455360 issue-tracking, x_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2026/04/11/10
- http://www.openwall.com/lists/oss-security/2026/04/11/11
- http://www.openwall.com/lists/oss-security/2026/04/12/2