CVE-2026-18477
Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
- State
- Published
- Severity
- 4.4 Medium
- Published
- Aug 3, 2026
- Updated
- Oct 30, 2026
- Reserved
- Jul 31, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.4 Medium | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N | redhat |
Weaknesses
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Affected Products
| Product | Versions |
|---|---|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Enterprise Linux 8Red Hat |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Discovery 2Red Hat |
|
Red Hat Hardened ImagesRed Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Update Infrastructure 5Red Hat |
|
Red Hat Enterprise Linux 6Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat Hardened ImagesRed Hat | |
Red Hat OpenShift Container Platform 4Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat | |
Red Hat OpenShift Container Platform 5Red Hat |
References
- RHSA-2026:49361vendor-advisory
- RHSA-2026:61581vendor-advisory
- RHSA-2026:61586vendor-advisory
- RHSA-2026:61783vendor-advisory
- RHSA-2026:66018vendor-advisory
- RHSA-2026:70390vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-18477vdb-entry
- RHBZ#2509735issue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.