Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- 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