# Tar: tar: hidden file injection via crafted archives

CVE record · `CVE-2026-5704`

- **Identifiers:** `CVE-2026-5704`
- **State:** Confirmed
- **Severity:** CVSS 5.0 Medium
- **Critical:** No
- **CNA:** redhat
- **Weakness (CWE):** [CWE-434](https://cwe.mitre.org/data/definitions/434.html)
- **Tags:** [Unrestricted file upload](https://agentprime.io/advisories/tag/file-upload.md)
- **Technologies:** [Red Hat Enterprise Linux 10](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-10.md) · [Red Hat Enterprise Linux 8](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-8.md) · [Red Hat Enterprise Linux 9](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-9.md) · [Red Hat Discovery 2](https://agentprime.io/advisories/technology/red-hat-discovery-2.md) · [Red Hat Hardened Images](https://agentprime.io/advisories/technology/red-hat-hardened-images.md) · [Red Hat Update Infrastructure 5](https://agentprime.io/advisories/technology/red-hat-update-infrastructure-5.md) · [Red Hat Enterprise Linux 6](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-6.md) · [Red Hat Enterprise Linux 7](https://agentprime.io/advisories/technology/red-hat-enterprise-linux-7.md)
- **Published:** 6 Apr 2026
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: redhat) at 6 Apr 2026, 15:17 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Red Hat. Product: Red Hat Enterprise Linux 10.
  - unaffected: `2:1.35-13.el10_2 to before *` (rpm)
  - Other versions: affected
  - Package name: `tar`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 8.
  - unaffected: `2:1.30-13.el8_10 to before *` (rpm)
  - Other versions: affected
  - Package name: `tar`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 9.
  - unaffected: `2:1.34-13.el9_8 to before *` (rpm)
  - Other versions: affected
  - Package name: `tar`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Discovery 2.
  - unaffected: `1788205779 to before *` (rpm)
  - Other versions: affected
  - Package name: `discovery/discovery-server-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Hardened Images.
  - unaffected: `1.35-10.hum1 to before *` (rpm)
  - Other versions: affected
  - Package name: `tar-main`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Update Infrastructure 5.
  - unaffected: `1788880445 to before *` (rpm)
  - Other versions: affected
  - Package name: `rhui5/cds-kubernetes-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Update Infrastructure 5.
  - unaffected: `1788880464 to before *` (rpm)
  - Other versions: affected
  - Package name: `rhui5/cds-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Update Infrastructure 5.
  - unaffected: `1788880456 to before *` (rpm)
  - Other versions: affected
  - Package name: `rhui5/haproxy-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Update Infrastructure 5.
  - unaffected: `1788765051 to before *` (rpm)
  - Other versions: affected
  - Package name: `rhui5/installer-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Update Infrastructure 5.
  - unaffected: `1788880581 to before *` (rpm)
  - Other versions: affected
  - Package name: `rhui5/rhua-rhel9`
  - Collection: `https://catalog.redhat.com/software/containers/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 6.
  - No versions given
  - Other versions: affected
  - Package name: `tar`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`
- Vendor: Red Hat. Product: Red Hat Enterprise Linux 7.
  - No versions given
  - Other versions: affected
  - Package name: `tar`
  - Collection: `https://access.redhat.com/downloads/content/package-browser/`

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 5.0 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`, from CNA (redhat)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0045, the 38th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 6 Apr 2026, 15:17 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-5704)
- 6 Apr 2026, 16:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-5704)

## Sources

- [CVE List: CVE-2026-5704](https://www.cve.org/CVERecord?id=CVE-2026-5704)
- [NVD: CVE-2026-5704](https://nvd.nist.gov/vuln/detail/CVE-2026-5704)

### References from the CNA

- <https://access.redhat.com/errata/RHSA-2026:61581> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2026:61586> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2026:61783> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2026:66018> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2026:66514> (vendor-advisory, redhat)
- <https://access.redhat.com/errata/RHSA-2026:70390> (vendor-advisory, redhat)
- <https://access.redhat.com/security/cve/CVE-2026-5704> (vdb-entry, redhat)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2455360> (issue-tracking, redhat)

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2026-5704>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2026-5704/>. Everything for agents: <https://agentprime.io/llms.txt>.
