CVE-2026-18477
Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
At a glance
- Source
- NVD
- EPSS
- EPSS 0.08 % · percentile 0 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Modified
Description
A TOCTOU (Time-of-Check Time-of-Use) vulnerability in GNU tar's incremental dumpdir 'X' rename handling allows a local attacker with write access to a directory being backed up to influence the restore process if the attacker has access to the system where the restore is being performed. During restoration, files or directories may be created, renamed or overwritten outside the intended extraction directory. This could lead to unauthorized file modification or, in some cases, privilege escalation. Exploitation does not require the attacker to modify or craft the archive, and standard backup and restore workflows—including extracting into a newly created directory without using the -P option do not mitigate the issue.
Weaknesses (CWE)
- CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition
References
- https://access.redhat.com/errata/RHSA-2026:49361
- 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/errata/RHSA-2026:70390
- https://access.redhat.com/security/cve/CVE-2026-18477
- https://bugzilla.redhat.com/show_bug.cgi?id=2509735
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N | redhat |
| CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N | NVD · secalert@redhat.com (Secondary) |
European references
- ENISA EUVD · EUVD-2026-52336
- GCVE · GCVE-0-2026-18477
CERT-FR advisories
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1249 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
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:8.0:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| 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 < * |
| Red Hat · Red Hat Discovery 2 | unaffected 1788205779 < * |
| Red Hat · Red Hat Hardened Images | unaffected 1.35-9.1.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 | |
| Red Hat · Red Hat Enterprise Linux 7 | |
| Red Hat · Red Hat Hardened Images | |
| Red Hat · Red Hat Hardened Images | |
| Red Hat · Red Hat Hardened Images | |
| Red Hat · Red Hat Hardened Images | |
| Red Hat · Red Hat Hardened Images | |
| Red Hat · Red Hat Hardened Images | |
| Red Hat · Red Hat Hardened Images | |
| Red Hat · Red Hat Hardened Images |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |