CVE-2026-18477: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Enterprise Linux 10
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.
AI Analysis
Technical Summary
This vulnerability arises from a TOCTOU race condition in GNU tar's handling of incremental backups and restores, specifically in the dumpdir 'X' rename process. A local attacker who can write to the directory being backed up and has access to the restore system can cause the restore operation to escape the intended extraction directory, creating, renaming, or overwriting files or directories outside it. This can lead to unauthorized file modifications or privilege escalation. The attacker does not need to craft or alter the archive, and restoring into a new directory without the -P option does not prevent exploitation. Red Hat is assessing the impact for the tar package in supported products. No official fix or patch has been confirmed yet. The vendor advisory recommends avoiding restoration of incremental backups on systems accessible to untrusted users who could have modified the backed-up data.
Potential Impact
The vulnerability allows a local attacker with write access to backed-up directories and access to the restore system to cause files or directories to be created, renamed, or overwritten outside the intended extraction directory during restore. This can result in unauthorized modification of files and, in some cases, privilege escalation. The integrity of the system can be compromised without requiring the attacker to modify the backup archive itself. Confidentiality and availability impacts are not indicated.
Mitigation Recommendations
Red Hat advises avoiding restoring incremental backups on systems where untrusted users have shell access, especially if they could have modified or controlled any of the backed-up data. Restoration of backups containing user-controlled content should only be performed on systems inaccessible to those users. No official patch or fix is currently confirmed; check the Red Hat advisory for updates. Standard backup and restore workflows, including extracting into a new directory without the -P option, do not mitigate this issue.
CVE-2026-18477: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Enterprise Linux 10
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.
CVSS v3.1
Score 4.4medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from a TOCTOU race condition in GNU tar's handling of incremental backups and restores, specifically in the dumpdir 'X' rename process. A local attacker who can write to the directory being backed up and has access to the restore system can cause the restore operation to escape the intended extraction directory, creating, renaming, or overwriting files or directories outside it. This can lead to unauthorized file modifications or privilege escalation. The attacker does not need to craft or alter the archive, and restoring into a new directory without the -P option does not prevent exploitation. Red Hat is assessing the impact for the tar package in supported products. No official fix or patch has been confirmed yet. The vendor advisory recommends avoiding restoration of incremental backups on systems accessible to untrusted users who could have modified the backed-up data.
Potential Impact
The vulnerability allows a local attacker with write access to backed-up directories and access to the restore system to cause files or directories to be created, renamed, or overwritten outside the intended extraction directory during restore. This can result in unauthorized modification of files and, in some cases, privilege escalation. The integrity of the system can be compromised without requiring the attacker to modify the backup archive itself. Confidentiality and availability impacts are not indicated.
Mitigation Recommendations
Red Hat advises avoiding restoring incremental backups on systems where untrusted users have shell access, especially if they could have modified or controlled any of the backed-up data. Restoration of backups containing user-controlled content should only be performed on systems inaccessible to those users. No official patch or fix is currently confirmed; check the Red Hat advisory for updates. Standard backup and restore workflows, including extracting into a new directory without the -P option, do not mitigate this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-07-31T10:48:40.556Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-18477","vendor":"Red Hat"}]
Threat ID: 6a70bf62bf32cb7a34daf14a
Added to database: 08/03/2026, 16:18:42 UTC
Last enriched: 08/03/2026, 16:36:24 UTC
Last updated: 08/03/2026, 19:32:12 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.