Vulnerability · Published Aug 3, 2026 · Assigned by redhat
CVE-2026-18477Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
Medium 4.4
In plain English
A medium-severity security flaw in Red Hat Discovery 2 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 0% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | tar | 2:1.35-13.el10_2 | ALSA-2026:61586 |
| AlmaLinux:8 | tar | 2:1.30-13.el8_10 | ALSA-2026:70390 |
| AlmaLinux:9 | tar | 2:1.34-13.el9_8 | ALSA-2026:61581 |
| Debian:12 | tar | no fix listed | DEBIAN-CVE-2026-18477 |
| Debian:13 | tar | no fix listed | DEBIAN-CVE-2026-18477 |
| Debian:14 | tar | no fix listed | DEBIAN-CVE-2026-18477 |
| Rocky Linux:10 | tar | 2:1.35-13.el10_2 | RLSA-2026:61586 |
| Rocky Linux:8 | tar | 2:1.30-13.el8_10 | RLSA-2026:70390 |
| Rocky Linux:9 | tar | 2:1.34-13.el9_8 | RLSA-2026:61581 |
| Ubuntu:22.04:LTS | tar | no fix listed | UBUNTU-CVE-2026-18477 |
| Ubuntu:24.04:LTS | tar | no fix listed | UBUNTU-CVE-2026-18477 |
| Ubuntu:26.04:LTS | tar | no fix listed | UBUNTU-CVE-2026-18477 |
| Ubuntu:26.10 | tar | no fix listed | UBUNTU-CVE-2026-18477 |
Affected products (as reported)
Weakness: CWE-367 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
References
- RHSA-2026:49361 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:61581 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:61586 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:61783 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:66018 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:70390 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-18477 vdb-entry, x_refsource_REDHAT
- RHBZ#2509735 issue-tracking, x_refsource_REDHAT