CVE-2026-18477
published medium CVSS 3.1 · 4.4Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | 10 | tar2:1.35-13.el10_2 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 8 | tar2:1.30-13.el8_10 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 9 | tar2:1.34-13.el9_8 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | discovery/discovery-server-rhel9Red Hat Discovery 2 · 1788205779 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | tar | Advisory build | 2:1.35-13.el10_2 | ALSA-2026:61586 |
| Oracle Linux | 10 | taraarch64 | Advisory build | 2:1.35-13.el10_2 | ELSA-2026-61586-0 |
Show 112 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | tar-mainRed Hat Hardened Images · 1.35-9.1.hum1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhui5/cds-kubernetes-rhel9Red Hat Update Infrastructure 5 · 1788880445 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhui5/cds-rhel9Red Hat Update Infrastructure 5 · 1788880464 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhui5/haproxy-rhel9Red Hat Update Infrastructure 5 · 1788880456 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhui5/installer-rhel9Red Hat Update Infrastructure 5 · 1788765051 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhui5/rhua-rhel9Red Hat Update Infrastructure 5 · 1788880581 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat Enterprise Linux | 6, 7 | tar | Unknown | Not stated | redhat |
| Red Hat | — | aardvark-dnsRed Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | chunkahRed Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | grafana12.4Red Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | grafana13.1Red Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | netavarkRed Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | nodejs26Red Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | python-cryptographyRed Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | rustRed Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | rust-rpm-sequoiaRed Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | yarnpkgRed Hat Hardened Images | Unaffected | Not required | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-8Red Hat OpenShift Container Platform 4 | Affected | Not stated | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 4 | Affected | Not stated | redhat |
| Red Hat | — | openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 5 | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | RHEL-10 | taraarch64 | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| SUSE / openSUSE | SLE-15-SP7 | taraarch64 | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| Rocky Linux | 10 | taraarch64 | Listed in advisory | Not stated | RLSA-2026:61586 |
| AlmaLinux | 8 | tar | Advisory build | 2:1.30-13.el8_10 | ALSA-2026:70390 |
| AlmaLinux | 9 | tar | Advisory build | 2:1.34-13.el9_8 | ALSA-2026:61581 |
| Oracle Linux | 10 | tarx86_64 | Advisory build | 2:1.35-13.el10_2 | ELSA-2026-61586-0 |
| Oracle Linux | 8 | taraarch64 | Advisory build | 2:1.30-13.el8_10 | ELSA-2026-70390 |
| Oracle Linux | 8 | tarx86_64 | Advisory build | 2:1.30-13.el8_10 | ELSA-2026-70390 |
| Oracle Linux | 9 | taraarch64 | Advisory build | 2:1.34-13.el9_8 | ELSA-2026-61581-0 |
| Oracle Linux | 9 | tarx86_64 | Advisory build | 2:1.34-13.el9_8 | ELSA-2026-61581-0 |
| Red Hat Enterprise Linux | RHEL-10 | tarppc64le | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tars390x | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tarsrc | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tarx86_64 | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-8 | taraarch64 | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tarppc64le | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tars390x | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tarsrc | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tarx86_64 | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-9 | taraarch64 | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tarppc64le | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tars390x | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tarsrc | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tarx86_64 | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| SUSE / openSUSE | SLE-15-SP7 | tarppc64le | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-15-SP7 | tars390x | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-15-SP7 | tarx86_64 | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-5 | taraarch64 | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-5 | tarppc64le | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-5 | tars390x | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-5 | tarx86_64 | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debuginfoaarch64 | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debuginfoppc64le | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debuginfos390x | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debuginfox86_64 | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debugsourceaarch64 | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debugsourceppc64le | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debugsources390x | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-10 | tar-debugsourcex86_64 | Advisory build | 2:1.35-13.el10_2 | RHSA-2026:61586 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debuginfoaarch64 | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debuginfoppc64le | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debuginfos390x | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debuginfox86_64 | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debugsourceaarch64 | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debugsourceppc64le | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debugsources390x | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-8 | tar-debugsourcex86_64 | Advisory build | 2:1.30-13.el8_10 | RHSA-2026:70390 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debuginfoaarch64 | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debuginfoppc64le | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debuginfos390x | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debuginfox86_64 | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debugsourceaarch64 | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debugsourceppc64le | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debugsources390x | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| Red Hat Enterprise Linux | RHEL-9 | tar-debugsourcex86_64 | Advisory build | 2:1.34-13.el9_8 | RHSA-2026:61581 |
| SUSE / openSUSE | SLE-15-SP7 | tar-langnoarch | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-15-SP7 | tar-rmtaarch64 | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-15-SP7 | tar-rmtppc64le | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-15-SP7 | tar-rmts390x | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| SUSE / openSUSE | SLE-15-SP7 | tar-rmtx86_64 | Advisory build | 1.34-150000.3.45.1 | SUSE-SU-2026:5160-1 |
| Rocky Linux | 10 | tarppc64le | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tars390x | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tarsrc | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tarx86_64 | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 8 | taraarch64 | Listed in advisory | Not stated | RLSA-2026:70390 |
| Rocky Linux | 8 | tarsrc | Listed in advisory | Not stated | RLSA-2026:70390 |
| Rocky Linux | 8 | tarx86_64 | Listed in advisory | Not stated | RLSA-2026:70390 |
| Rocky Linux | 9 | taraarch64 | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tarppc64le | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tars390x | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tarsrc | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tarx86_64 | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 10 | tar-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tar-debuginfoppc64le | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tar-debuginfos390x | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tar-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tar-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tar-debugsourceppc64le | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tar-debugsources390x | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 10 | tar-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2026:61586 |
| Rocky Linux | 8 | tar-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2026:70390 |
| Rocky Linux | 8 | tar-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2026:70390 |
| Rocky Linux | 8 | tar-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2026:70390 |
| Rocky Linux | 8 | tar-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2026:70390 |
| Rocky Linux | 9 | tar-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tar-debuginfoppc64le | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tar-debuginfos390x | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tar-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tar-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tar-debugsourceppc64le | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tar-debugsources390x | Listed in advisory | Not stated | RLSA-2026:61581 |
| Rocky Linux | 9 | tar-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2026:61581 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.4 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | 2:1.35-13.el10_2 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | 2:1.30-13.el8_10 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | 2:1.34-13.el9_8 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Discovery 2 | 1788205779 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Hardened Images | 1.35-9.1.hum1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880445 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880464 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880456 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Update Infrastructure 5 | 1788765051 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Update Infrastructure 5 | 1788880581 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 6 | Default: unknown | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: unknown | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: affected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: affected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 5 | Default: affected | redhat · cna |
Weaknesses
1- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
8- RHSA-2026:49361 https://access.redhat.com/errata/RHSA-2026:49361
- RHSA-2026:61581 https://access.redhat.com/errata/RHSA-2026:61581
- RHSA-2026:61586 https://access.redhat.com/errata/RHSA-2026:61586
- RHSA-2026:61783 https://access.redhat.com/errata/RHSA-2026:61783
- RHSA-2026:66018 https://access.redhat.com/errata/RHSA-2026:66018
- RHSA-2026:70390 https://access.redhat.com/errata/RHSA-2026:70390
- https://access.redhat.com/security/cve/CVE-2026-18477
- RHBZ#2509735 https://bugzilla.redhat.com/show_bug.cgi?id=2509735
Provider assertions
2redhat · cna
Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4bfadc0ce4738acb6b041026fcffde6675825c8033cb50db40e8d22132408b52
- Ingested
- 07 Nov 2026, 23:41:46 UTC
- Source record
- Official CVE record