Skip to main content
EPSS 0.1%top 100%

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… (CVE-2026-18477)

0
Medium
Published: 08/03/2026 (08/03/2026, 18:30:47 UTC)
Source: GCVE Database

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

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N

Affected software

Affected versions
=1.35-9.1.hum1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 16:21:48 UTC

Technical Analysis

CVE-2026-18477 is a local privilege escalation vulnerability in GNU tar's incremental dumpdir 'X' rename handling due to a TOCTOU race condition. A local attacker who can write to a directory included in an incremental backup and who has access to the system where the backup is restored can cause the restore process to create, rename, or overwrite files outside the intended extraction directory. This vulnerability affects the tar package version 1.35-9.1.hum1 in Red Hat Hardened Images for aarch64 and x86_64 architectures. The attacker does not need to modify the archive, and standard extraction methods do not prevent exploitation. Red Hat has published an advisory (RHSA-2026:49361) describing the issue and mitigation recommendations but has not yet released a patch. The vulnerability is classified under CWE-367 (Time-of-check Time-of-use Race Condition) and has a Red Hat CVSS v3 score of 4.4 (medium severity).

Potential Impact

The vulnerability allows a local attacker with write access to a directory included in an incremental backup and access to the restore system to cause files or directories to be created, renamed, or overwritten outside the intended extraction directory during restoration. This can lead to unauthorized file modification and, in some cases, privilege escalation. The attacker does not need to modify the archive or craft a malicious archive, and extraction into a new directory without the -P option does not mitigate the issue. The integrity of the system can be compromised, potentially allowing unauthorized access or modification of files.

Mitigation Recommendations

Red Hat advises not to perform incremental restores (-G/-g) from untrusted archives. Restoration should only be performed on systems inaccessible to untrusted users. Avoid restoring incremental backups on systems where untrusted users have shell access. There is currently no official fix or patch released by Red Hat for this vulnerability. Users should monitor Red Hat advisories for updates and apply patches once available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:49361
Cve Count
1
State
PUBLISHED

Threat ID: 6a757398bf8831d539d9145c

Added to database: 08/07/2026, 05:56:40 UTC

Last enriched: 09/07/2026, 16:21:48 UTC

Last updated: 09/21/2026, 22:01:32 UTC

Views: 42

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses