CVE-2026-18508
Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite
- State
- Published
- Severity
- 4.4 Medium
- Published
- Aug 3, 2026
- Updated
- Nov 2, 2026
- Reserved
- Jul 31, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.4 Medium | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N | redhat |
Weaknesses
- CWE-59 Improper Link Resolution Before File Access
Affected Products
| Product | Versions |
|---|---|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Discovery 2Red Hat |
|
Red Hat Hardened ImagesRed Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat OpenShift Container Platform 4Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat | |
Red Hat OpenShift Container Platform 5Red Hat |
References
- RHSA-2026:50807vendor-advisory
- RHSA-2026:61581vendor-advisory
- RHSA-2026:61586vendor-advisory
- RHSA-2026:61783vendor-advisory
- RHSA-2026:66018vendor-advisory
- RHSA-2026:70390vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-18508vdb-entry
- RHBZ#2509843issue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.