CVE-2026-18477 Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
29 packages: 8 fixed, 18 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux tar(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| debian/tar(Debian 12) | = 1.34+dfsg-1.2; = 1.34+dfsg-1.2+deb12u1; = 1.34+dfsg-1.3; = 1.34+dfsg-1.4 +10 more | No fix listed | No fix yet |
| debian/tar(Debian 13) | = 1.35+dfsg-3.1; = 1.35+dfsg-4; = 1.35+dfsg-5; = 1.35+dfsg-5+hurd.1 +3 more | No fix listed | No fix yet |
| debian/tar(Debian 14) | = 1.35+dfsg-3.1; = 1.35+dfsg-4; = 1.35+dfsg-5; = 1.35+dfsg-5+hurd.1 +3 more | No fix listed | No fix yet |
| redhat openshift | All versions | No fix listed | No fix yet |
| redhat/discovery/discovery-server-rhel9:1788205779(Red Hat discovery 2 el9) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift/ose-rhel-coreos-9(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/rhui5/cds-kubernetes-rhel9:1788880445(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhui5/cds-rhel9:1788880464(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhui5/haproxy-rhel9:1788880456(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhui5/installer-rhel9:1788765051(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhui5/rhua-rhel9:1788880581(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| ubuntu/tar(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/tar(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/tar(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/tar(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| redhat discovery | < 1788205779 | 1788205779 | Fixed |
| redhat enterprise linux | < 2:1.30-13.el8_10; < 2:1.34-13.el9_8; < 2:1.35-13.el10_2; = 8.0 +2 more | 2:1.30-13.el8_10, 2:1.34-13.el9_8, 2:1.35-13.el10_2 | Fixed |
| redhat hummingbird | < 1.35-9.1.hum1; = 1 | 1.35-9.1.hum1 | Fixed |
| redhat rhui | < 1788765051; < 1788880445; < 1788880456; < 1788880464 +1 more | 1788765051, 1788880445, 1788880456, 1788880464, 1788880581 | Fixed |
| redhat/tar(Red Hat enterprise_linux 10.2) | < 2:1.35-13.el10_2 | 2:1.35-13.el10_2 | Fixed |
| redhat/tar(Red Hat enterprise_linux 8) | < 2:1.30-13.el8_10 | 2:1.30-13.el8_10 | Fixed |
| redhat/tar(Red Hat enterprise_linux 9) | < 2:1.34-13.el9_8 | 2:1.34-13.el9_8 | Fixed |
| redhat/tar-main(Red Hat hummingbird 1) | < 1.35-9.1.hum1 | 1.35-9.1.hum1 | Fixed |
| GNU tar | = 1.35 | No fix listed | Versions listed |
| redhat openshift container platform | = 4.0 | No fix listed | Versions listed |
| redhat rhel els | = 6; = 7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat enterprise linux | < 2:1.35-13.el10_2 | 2:1.35-13.el10_2 |
| redhat enterprise linux | < 2:1.30-13.el8_10 | 2:1.30-13.el8_10 |
| redhat enterprise linux | < 2:1.34-13.el9_8 | 2:1.34-13.el9_8 |
| redhat discovery | < 1788205779 | 1788205779 |
| redhat hummingbird | < 1.35-9.1.hum1 | 1.35-9.1.hum1 |
| redhat rhui | < 1788880445 | 1788880445 |
| redhat rhui | < 1788880464 | 1788880464 |
| redhat rhui | < 1788880456 | 1788880456 |
| redhat rhui | < 1788765051 | 1788765051 |
| redhat rhui | < 1788880581 | 1788880581 |
| redhat rhel els | = 6 | No fix listed |
| redhat rhel els | = 7 | No fix listed |
| redhat hummingbird | = 1 | No fix listed |
| redhat openshift | All versions | No fix listed |
| redhat/tar(Red Hat:enterprise_linux:10.2) | < 2:1.35-13.el10_2 | 2:1.35-13.el10_2 |
| redhat/tar(Red Hat:enterprise_linux:8) | < 2:1.30-13.el8_10 | 2:1.30-13.el8_10 |
| redhat/tar(Red Hat:enterprise_linux:9) | < 2:1.34-13.el9_8 | 2:1.34-13.el9_8 |
| redhat/discovery/discovery-server-rhel9:1788205779(Red Hat:discovery:2::el9) | All versions | No fix listed |
| redhat/tar-main(Red Hat:hummingbird:1) | < 1.35-9.1.hum1 | 1.35-9.1.hum1 |
| redhat/rhui5/cds-kubernetes-rhel9:1788880445(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/cds-rhel9:1788880464(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/haproxy-rhel9:1788880456(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/installer-rhel9:1788765051(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/rhua-rhel9:1788880581(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/tar(Red Hat:rhel_els:6) | All versions | No fix listed |
Show 42 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/tar(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift/ose-rhel-coreos-9(Red Hat:openshift:5) | All versions | No fix listed |
| debian/tar(Debian:12) | All versions | No fix listed |
| debian/tar(Debian:12) | = 1.34+dfsg-1.2 | No fix listed |
| debian/tar(Debian:12) | = 1.34+dfsg-1.2+deb12u1 | No fix listed |
| debian/tar(Debian:12) | = 1.34+dfsg-1.3 | No fix listed |
| debian/tar(Debian:12) | = 1.34+dfsg-1.4 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-1 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-2 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-3 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-3.1 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-4 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-5 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-5+hurd.1 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-6 | No fix listed |
| debian/tar(Debian:12) | = 1.35+dfsg-7 | No fix listed |
| debian/tar(Debian:13) | All versions | No fix listed |
| debian/tar(Debian:13) | = 1.35+dfsg-3.1 | No fix listed |
| debian/tar(Debian:13) | = 1.35+dfsg-4 | No fix listed |
| debian/tar(Debian:13) | = 1.35+dfsg-5 | No fix listed |
| debian/tar(Debian:13) | = 1.35+dfsg-5+hurd.1 | No fix listed |
| debian/tar(Debian:13) | = 1.35+dfsg-6 | No fix listed |
| debian/tar(Debian:13) | = 1.35+dfsg-7 | No fix listed |
| debian/tar(Debian:14) | All versions | No fix listed |
| debian/tar(Debian:14) | = 1.35+dfsg-3.1 | No fix listed |
| debian/tar(Debian:14) | = 1.35+dfsg-4 | No fix listed |
| debian/tar(Debian:14) | = 1.35+dfsg-5 | No fix listed |
| debian/tar(Debian:14) | = 1.35+dfsg-5+hurd.1 | No fix listed |
| debian/tar(Debian:14) | = 1.35+dfsg-6 | No fix listed |
| debian/tar(Debian:14) | = 1.35+dfsg-7 | No fix listed |
| ubuntu/tar(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/tar(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/tar(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/tar(Ubuntu:26.10) | All versions | No fix listed |
| GNU tar | = 1.35 | No fix listed |
| redhat openshift container platform | = 4.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux | = 9.0 | No fix listed |
| redhat enterprise linux | = 10.0 | No fix listed |
| azure linux tar(Azure Linux:3.0) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Security Update patch vendor-advisory
- RHSA-2026:49361 patch vendor-advisory
- RHSA-2026:61581 patch vendor-advisory
- RHSA-2026:61586 patch vendor-advisory
- RHSA-2026:61783 patch vendor-advisory
- RHSA-2026:66018 patch vendor-advisory
- RHSA-2026:70390 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2509735 issue-tracking vendor-advisory
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-18477 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking