Description
A flaw was found in GNU tar. When extracting an archive with the --one-top-level option, hardlink targets are not confined to the designated top-level directory and may resolve relative to the extraction working directory. A crafted archive can create hardlinks that escape the intended boundary and, when combined with a preexisting symbolic link under the working directory, may allow writing outside that boundary during a single extraction.
Published: 2026-08-03
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in GNU tar allows hardlink targets to escape the intended top‑level directory when the --one-top-level option is used. A crafted archive can create hardlinks that resolve relative to the extraction working directory. If a symbolic link already exists in that working directory, the extraction can write files outside the confined directory. This vulnerability enables an attacker to overwrite arbitrary files, potentially compromising system integrity and escalating privileges if executed with root.

Affected Systems

This flaw affects Red Hat Enterprise Linux releases 6 via 10, Red Hat Hardened Images, and Red Hat OpenShift Container Platform 4. No specific sub‑versions are identified in the advisory, so any systems running GNU tar before the fix are potentially vulnerable.

Risk and Exploitability

The CVSS score of 4.4 denotes moderate severity. The exploit would require an attacker to execute the tar extraction as a privileged user and craft a target archive with hardlinks. While the EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, the lack of early discovery suggests a lower likelihood of widespread exploitation. Nevertheless, if the conditions for extraction are met, an attacker could overwrite critical files and potentially gain elevated privileges.

Generated by OpenCVE AI on August 4, 2026 at 10:12 UTC.

Remediation

Vendor Workaround

Do not use --one-top-level as the sole confinement mechanism when extracting untrusted archives. Prefer extracting as an unprivileged user into a freshly created empty directory after changing into that directory (mkdir and cd), avoid extracting as root from sensitive working directories such as /, and follow the GNU tar security guidance for untrusted archives.


OpenCVE Recommended Actions

  • Update the system to a tar version that contains the fix or apply the vendor‑issued patch.
  • Refrain from using --one-top-level when extracting untrusted archives; extract as an unprivileged user into a freshly created empty directory and then drop privileges.
  • Do not perform extraction as root from sensitive working directories such as /; ensure any existing symbolic links are removed or secured before extraction.

Generated by OpenCVE AI on August 4, 2026 at 10:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gnu:tar:1.35:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

Fri, 07 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
References

Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Gnu
Gnu tar
Redhat hardened Images
Redhat openshift Container Platform
Vendors & Products Gnu
Gnu tar
Redhat hardened Images
Redhat openshift Container Platform

Tue, 04 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 03 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in GNU tar. When extracting an archive with the --one-top-level option, hardlink targets are not confined to the designated top-level directory and may resolve relative to the extraction working directory. A crafted archive can create hardlinks that escape the intended boundary and, when combined with a preexisting symbolic link under the working directory, may allow writing outside that boundary during a single extraction.
Title Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
Weaknesses CWE-59
CPEs cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}


Subscriptions

Gnu Tar
Redhat Enterprise Linux Hardened Images Hummingbird Openshift Openshift Container Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-21T12:13:53.723Z

Reserved: 2026-07-31T17:08:04.550Z

Link: CVE-2026-18508

cve-icon Vulnrichment

Updated: 2026-08-03T16:02:40.067Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-03T16:16:28.387

Modified: 2026-08-21T13:16:55.433

Link: CVE-2026-18508

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-31T00:00:00Z

Links: CVE-2026-18508 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:22:14Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')