CVE-2026-18508
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | 2:1.35-13.el10_2 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9 | 2:1.34-13.el9_8 < * | unaffected |
| Red Hat | Red Hat Discovery 2 | 1788205779 < * | unaffected |
| Red Hat | Red Hat Hardened Images | 1.35-9.2.hum1 < * | unaffected |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880445 < * | unaffected |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880464 < * | unaffected |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880456 < * | unaffected |
| Red Hat | Red Hat Update Infrastructure 5 | 1788765051 < * | unaffected |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880581 < * | unaffected |
Weaknesses
- CWE-59: Improper Link Resolution Before File Access ('Link Following')
Workarounds
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.
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://access.redhat.com/errata/RHSA-2026:50807
- https://access.redhat.com/errata/RHSA-2026:61581
- https://access.redhat.com/errata/RHSA-2026:61586
- https://access.redhat.com/errata/RHSA-2026:61783
- https://access.redhat.com/errata/RHSA-2026:66018
- https://access.redhat.com/security/cve/CVE-2026-18508
- https://bugzilla.redhat.com/show_bug.cgi?id=2509843
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.