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.

Project Subscriptions

Vendors Products
Discovery Subscribe
Enterprise Linux Subscribe
Hardened Images Subscribe
Hummingbird Subscribe
Openshift Subscribe
Openshift Container Platform Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the 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.

History

Thu, 10 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat rhui
CPEs cpe:/a:redhat:rhui:5::el9
Vendors & Products Redhat rhui
References

Tue, 01 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References

Tue, 01 Sep 2026 02:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat discovery
CPEs cpe:/a:redhat:discovery:2::el9
Vendors & Products Redhat discovery
References

Mon, 31 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/o:redhat:enterprise_linux:9::baseos
References

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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-09-10T17:23:39.917Z

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 : Modified

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

Modified: 2026-09-10T18:17:57.193

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