Skip to main content

GNU tar CVE-2026-18477

| EUVDEUVD-2026-52336 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-08-03 redhat GHSA-v7fx-gjvh-347c
4.4
CVSS 3.1 · Vendor: redhat
Share

Severity by source

Vendor (redhat) PRIMARY
4.4 MEDIUM
AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
vuln.today AI
4.4 MEDIUM

Local-only vector with race-condition complexity; write access and admin-initiated restore required; pure integrity impact with no confidentiality or availability consequences.

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE
MEDIUM
qualitative
Red Hat
4.4 MEDIUM
qualitative

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Analysis Generated
Aug 03, 2026 - 17:13 vuln.today
CVE Published
Aug 03, 2026 - 15:34 cve.org
MEDIUM 4.4

DescriptionCVE.org

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.

AnalysisAI

GNU tar's incremental restore path contains a TOCTOU race condition in dumpdir 'X' rename handling, allowing a local attacker with write access to a backed-up directory to redirect file operations outside the intended extraction root during a privileged restore. Successful exploitation can result in arbitrary file creation, rename, or overwrite - enabling privilege escalation on systems running Red Hat Enterprise Linux 6 through 10 and Red Hat Hardened Images. No public exploit is identified at time of analysis, and no CISA KEV listing exists; the CVSS score of 4.4 reflects the constrained attack prerequisites including a required race window and administrator-initiated restore.

Technical ContextAI

GNU tar's incremental backup mode (invoked with --listed-incremental or -g) records filesystem state in a dumpdir format, using 'X' markers to encode file rename operations. During restoration, tar processes these rename entries sequentially - checking the source path and then performing the rename. CWE-367 (Time-of-Check Time-of-Use) describes exactly this pattern: the window between the check and the use allows an attacker to swap in a symlink or manipulate directory entries, causing tar to follow attacker-controlled paths outside the extraction root. The vulnerability is present in GNU tar as packaged across Red Hat Enterprise Linux 6, 7, 8, 9, and 10, as well as Red Hat Hardened Images and OpenShift Container Platform 4, per CPE data (cpe:2.3:a:red_hat:red_hat_enterprise_linux_*). The underlying flaw resides in upstream GNU tar's incremental restore logic, but the advisory scope and CPEs are Red Hat-specific.

RemediationAI

Apply Red Hat security errata for the affected RHEL versions once published - monitor https://access.redhat.com/security/cve/CVE-2026-18477 for the official update package. No specific fixed GNU tar version or RHSA advisory number was confirmed in the available data at time of analysis; track https://bugzilla.redhat.com/show_bug.cgi?id=2509735 for patch status updates. As a compensating control, restrict write access to directories included in incremental backup sets to only fully trusted accounts, eliminating the attacker's ability to manipulate the backup source before or during restoration. Additionally, perform restore operations in isolated environments under a dedicated backup service account that holds no additional system privileges, reducing the impact of any path traversal. Critically, the CVE description explicitly states that standard defenses - extracting into a newly created directory and omitting the -P flag - do NOT mitigate this vulnerability, so do not rely on these controls as substitutes for patching.

CVE-2026-18663 MEDIUM
5.9 Aug 12

Heap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash

CVE-2026-4631 CRITICAL POC
9.8 Apr 07

Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h

CVE-2026-4480 CRITICAL POC
9.0 May 26

Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft

CVE-2026-18922 CRITICAL
9.8 Sep 07

Authentication bypass in 389 Directory Server (shipped as Red Hat Directory Server 11-13 and within RHEL 6-10) lets remo

CVE-2026-14544 CRITICAL
9.8 Jul 03

Remote code execution and privilege escalation in HPLIP (HP Linux Imaging and Printing) affects the hpcups print filter

CVE-2026-76578 CRITICAL
9.8 Sep 07

Unauthenticated privilege escalation in FreeIPA (Red Hat Identity Management) allows a remote attacker to gain genuine a

CVE-2026-5121 HIGH
7.5 Mar 30

Remote code execution in libarchive on 32-bit systems allows unauthenticated attackers to execute arbitrary code via spe

CVE-2026-28369 CRITICAL
9.1 Mar 27

HTTP request smuggling in Undertow (the embedded web server underpinning JBoss EAP, Red Hat Data Grid, and Apache Camel

CVE-2026-28368 CRITICAL
9.1 Mar 27

HTTP request smuggling in Red Hat Undertow allows remote unauthenticated attackers to bypass front-end security controls

CVE-2026-33845 CRITICAL
9.1 Apr 30

Out-of-bounds read in the GnuTLS DTLS handshake reassembly logic lets remote unauthenticated attackers trigger an intege

CVE-2026-28367 CRITICAL
9.1 Mar 27

HTTP request smuggling in Undertow allows remote unauthenticated attackers to send `\r\r\r` as a header block terminator

CVE-2026-16526 HIGH
8.8 Jul 30

Local privilege escalation in Performance Co-Pilot (PCP) on Red Hat Enterprise Linux 6 through 10 and OpenShift Containe

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected
SLES15-SP6-CHOST-BYOS-Aliyun Affected
SLES15-SP6-CHOST-BYOS-Azure Affected
SLES15-SP6-CHOST-BYOS-EC2 Affected

Share

CVE-2026-18477 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy