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

Read the record on cve.org

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

CVSSScoreVectorSource
3.14.4 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:Nredhat

Weaknesses

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Affected Products

ProductVersions
Red Hat Enterprise Linux 10Red Hat
  • 2:1.35-13.el10_2 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
  • 2:1.30-13.el8_10 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 2:1.34-13.el9_8 and laterNot affected
Red Hat Discovery 2Red Hat
  • 1788205779 and laterNot affected
Red Hat Hardened ImagesRed Hat
  • 1.35-9.1.hum1 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880445 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880464 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880456 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788765051 and laterNot affected
Red Hat Update Infrastructure 5Red Hat
  • 1788880581 and laterNot affected
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

                                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.