CVE-2026-18508Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite
- 4.4MediumCVSS base score
- 0.14%Exploitation in 30 daysEPSS · top 97% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 3 days later
· 3 days later
Published
- 3 months later
· 3 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium4.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium4.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.14% · top 97% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.4.
Affected products
Red Hat · Red Hat Enterprise Linux 10
- unaffected 2:1.35-13.el10_2 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 2:1.30-13.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 2:1.34-13.el9_8 – < *
- unaffected 1788205779 – < *
Red Hat · Red Hat Hardened Images
- unaffected 1.35-9.2.hum1 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880445 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880464 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880456 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788765051 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880581 – < *
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: unknown
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
Red Hat · Red Hat OpenShift Container Platform 5
All versions: affected
What to do
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.
References
References8
- RHSA-2026:50807 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:61581 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:61586 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:61783 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:66018 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:70390 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-18508 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2509843 (opens in a new tab)issue-trackingx_refsource_REDHAT
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-52327 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-18508)Record last updated .