Skip to main content
EPSS 0.1%top 100%

CVE-2026-18477: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Enterprise Linux 10

0
Medium
Published: 08/03/2026 (08/03/2026, 15:34:36 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: 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

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

Red Hat

Red Hat Enterprise Linux 10

Red Hat

Red Hat Enterprise Linux 9

Red Hat

Red Hat Discovery 2

Red Hat

Red Hat Hardened Images

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Update Infrastructure 5

Red Hat

Red Hat Enterprise Linux 6

Red Hat

Red Hat Enterprise Linux 7

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Hardened Images

Red Hat

Red Hat OpenShift Container Platform 4

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 17:59:46 UTC

Technical Analysis

This vulnerability exists in GNU tar's incremental dumpdir 'X' rename handling, where a TOCTOU race condition allows a local attacker with write access to a directory being backed up to affect the restore process on the target system. During restoration, the attacker can cause files or directories to be created, renamed, or overwritten outside the intended extraction directory, leading to unauthorized file modifications or privilege escalation. The attacker does not need to modify the archive itself, and extracting into a new directory without the -P option does not prevent exploitation. Red Hat has acknowledged the issue affecting their Hardened Images and released security updates for the tar package (tar-1.35-9.1.hum1) to fix this vulnerability.

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 unauthorized file modifications or privilege escalation by escaping the intended extraction directory during restore. This compromises the integrity of the system by enabling modification or overwriting of files outside the expected restore path. Confidentiality and availability impacts are not indicated. The CVSS 3.1 base score is 4.4 (medium severity) with local attack vector, high attack complexity, low privileges required, and user interaction required.

Mitigation Recommendations

Red Hat has released a security update for the tar package (tar-1.35-9.1.hum1) that addresses this vulnerability. Users of Red Hat Hardened Images should apply this update promptly. Until the update is applied, do not perform incremental restores (-G/-g) from untrusted archives and avoid restoring incremental backups on systems accessible to untrusted users. Perform restoration only on systems inaccessible to untrusted users. Standard backup and restore workflows do not mitigate this issue, so applying the official patch is the recommended remediation.

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

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2026-07-31T10:48:40.556Z
Cvss Version
3.1
State
PUBLISHED
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/11/2026, 17:59:46 UTC

Last updated: 09/17/2026, 22:01:33 UTC

Views: 56

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.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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