Skip to main content
← All vulnerabilities
CVE-2026-18477

Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • tar

    Version range not reported

  • tar

    Version range not reported

  • tar

    Version range not reported

  • discovery/discovery-server-rhel9

    Version range not reported

  • tar-main

    Version range not reported

  • rhui5/cds-kubernetes-rhel9

    Version range not reported

  • rhui5/cds-rhel9

    Version range not reported

  • rhui5/haproxy-rhel9

    Version range not reported

  • rhui5/installer-rhel9

    Version range not reported

  • rhui5/rhua-rhel9

    Version range not reported

  • tar

    Version range not reported

  • tar

    Version range not reported

  • aardvark-dns

    Version range not reported

  • chunkah

    Version range not reported

  • grafana12.4

    Version range not reported

  • grafana13.1

    Version range not reported

  • netavark

    Version range not reported

  • nodejs26

    Version range not reported

  • python-cryptography

    Version range not reported

  • rust

    Version range not reported

  • rust-rpm-sequoia

    Version range not reported

  • yarnpkg

    Version range not reported

  • openshift/ose-rhel-coreos-8

    Version range not reported

  • openshift/ose-rhel-coreos-9

    Version range not reported

References 8

access.redhat.com

bugzilla.redhat.com