# CVE-2026-18477: Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape

- Severity: Medium 4.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-08-03T15:34:36.627Z
- Modified: 2026-11-05T20:17:52.390Z
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- tar: no versions given (not affected: from 2:1.35-13.el10_2 before *; from 2:1.30-13.el8_10 before *; from 2:1.34-13.el9_8 before *)
- discovery/discovery-server-rhel9: no versions given (not affected: from 1788205779 before *)
- tar-main: no versions given (not affected: from 1.35-9.1.hum1 before *)
- rhui5/cds-kubernetes-rhel9: no versions given (not affected: from 1788880445 before *)
- rhui5/cds-rhel9: no versions given (not affected: from 1788880464 before *)
- rhui5/haproxy-rhel9: no versions given (not affected: from 1788880456 before *)
- rhui5/installer-rhel9: no versions given (not affected: from 1788765051 before *)
- rhui5/rhua-rhel9: no versions given (not affected: from 1788880581 before *)
- aardvark-dns: no versions given
- chunkah: no versions given
- grafana12.4: no versions given
- grafana13.1: no versions given
- netavark: no versions given
- nodejs26: no versions given
- python-cryptography: no versions given
- rust: no versions given
- rust-rpm-sequoia: no versions given
- yarnpkg: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- gnu tar: 1.35
- redhat openshift_container_platform: 4.0
- redhat enterprise_linux: 8.0; 9.0; 10.0

## References

- <https://access.redhat.com/errata/RHSA-2026:49361> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:61581> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:61586> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:61783> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:66018> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:70390> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-18477> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2509735> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2026-18477](https://www.cve.org/CVERecord?id=CVE-2026-18477), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-18477](https://nvd.nist.gov/vuln/detail/CVE-2026-18477), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-18477 · Whole record: https://cve.day/CVE-2026-18477.json · Rebuilt by cve.day 2026-11-25T22:59:30.877Z
