---
id: CVE-2026-5704
title: A flaw was found in tar
summary: >-
  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, pot…
severity: medium
cvss: 5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N'
cwe:
  - CWE-434
vendor: gnu
product: tar
affected:
  - tar
  - hardened_images
  - enterprise_linux = 6.0
  - enterprise_linux = 7.0
  - enterprise_linux = 8.0
  - enterprise_linux = 9.0
  - enterprise_linux = 10.0
patched:
  - enterprise_linux_baseos_v_10
  - enterprise_linux_baseos_v_9
  - discovery 2
  - hardened_images
  - update_infrastructure 5
published: '2026-04-06'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T22:17:11.880'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-5704'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:61581'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:61586'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:61783'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:66018'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:66514'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:70390'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-5704'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2455360'
    label: secalert@redhat.com
  - url: 'http://www.openwall.com/lists/oss-security/2026/04/11/10'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.openwall.com/lists/oss-security/2026/04/11/11'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'http://www.openwall.com/lists/oss-security/2026/04/12/2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5704.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-5704'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-5704'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00401
epssPercentile: 0.34166
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-04-07T15:48:15.196926Z'
ingestedAt: '2026-09-01T14:27:54.531Z'
---

## Overview

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

- `tar`
- `hardened_images`
- `enterprise_linux = 6.0`
- `enterprise_linux = 7.0`
- `enterprise_linux = 8.0`
- `enterprise_linux = 9.0`
- `enterprise_linux = 10.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2026:61586** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS (v. 10) · released 2026-09-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:61586)
- **RHSA-2026:61581** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS (v. 9) · released 2026-08-31 · [advisory](https://access.redhat.com/errata/RHSA-2026:61581)
- **RHSA-2026:61783** · Red Hat · fixed in: Red Hat Discovery 2 · released 2026-08-31 · [advisory](https://access.redhat.com/errata/RHSA-2026:61783)
- **RHSA-2026:66514** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:66514)
- **RHSA-2026:66018** · Red Hat · fixed in: Red Hat Update Infrastructure 5 · released 2026-09-09 · [advisory](https://access.redhat.com/errata/RHSA-2026:66018)
- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · updated 2026-09-22 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5704.json)
- **RHSA-2026:70390** · Red Hat · fixed in: Red Hat Enterprise Linux BaseOS (v. 8) · released 2026-09-22 · [advisory](https://access.redhat.com/errata/RHSA-2026:70390)
