cve.bz

CVE-2026-18477

4.4 mediumEPSS 0.1%Fix available

Medium (4.4). EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.4 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
EPSS
0.1% (unchanged from 0.1% a week ago; 0.08% 30 days ago) estimated probability of exploitation activity in the next 30 days; 1st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-18477 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-18477?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-18477?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-18477 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 102:1.35-13.el10_2
Red Hat Enterprise Linux 82:1.30-13.el8_10
Red Hat Enterprise Linux 92:1.34-13.el9_8
Red Hat Discovery 21788205779
Red Hat Hardened Images1.35-9.1.hum1
Red Hat Update Infrastructure 51788880445
Red Hat Update Infrastructure 51788880464
Red Hat Update Infrastructure 51788880456
Red Hat Update Infrastructure 51788765051
Red Hat Update Infrastructure 51788880581

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14tarno fix listedDEBIAN-CVE-2026-18477
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 5 moretarno fix listedUBUNTU-CVE-2026-18477
Red Hatenterprise_linux:8::baseostar, tar-debuginfo, tar-debugsource2:1.30-13.el8_10RHSA-2026:70390
Red Hatenterprise_linux:9::baseostar, tar-debuginfo, tar-debugsource2:1.34-13.el9_8RHSA-2026:61581
Red Hatenterprise_linux:10.2tar, tar-debuginfo, tar-debugsource2:1.35-13.el10_2RHSA-2026:61586
Red Hathummingbird:1tar2:1.35-9.1.hum1RHSA-2026:49361
SUSELinux Enterprise Micro 5.4, Linux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP7tar1.34-150000.3.45.1SUSE-SU-2026:5160-1
AlmaLinux8tar2:1.30-13.el8_10ALSA-2026:70390
AlmaLinux9tar2:1.34-13.el9_8ALSA-2026:61581
AlmaLinux10tar2:1.35-13.el10_2ALSA-2026:61586
Rocky Linux8tar2:1.30-13.el8_10RLSA-2026:70390
Rocky Linux9tar2:1.34-13.el9_8RLSA-2026:61581
Rocky Linux10tar2:1.35-13.el10_2RLSA-2026:61586
Azure Linux3tarno fix listedAZL-94602

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects GNU tar incremental backup and restore (-g/-G). A local attacker who can write to content included in an incremental backup, and who can also access the system where that backup is later restored, may cause the restore to create, rename, or overwrite paths outside the intended extraction directory via a TOCTOU race in dumpdir 'X' handling. The attacker does not need to craft or alter the archive, and extracting it into a fresh directory does not mitigate the issue. Red Hat is assessing impact for the tar package in supported products.

Red Hat's mitigation

Do not perform incremental restores (-G/-g) from untrusted archives. Avoid restoring incremental backups on systems where untrusted users have shell access,​ perform restoration only on systems inaccessible to users.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10tar-2:1.35-13.el10_2Fixed 2026-09-01RHSA-2026:61586
Red Hat Enterprise Linux 8tar-2:1.30-13.el8_10Fixed 2026-09-22RHSA-2026:70390
Red Hat Enterprise Linux 9tar-2:1.34-13.el9_8Fixed 2026-08-31RHSA-2026:61581
Red Hat Discovery 2discovery/discovery-server-rhel9:1788205779Fixed 2026-08-31RHSA-2026:61783
Red Hat Hardened Imagestar-main-1.35-9.1.hum1Fixed 2026-08-01RHSA-2026:49361
Red Hat Update Infrastructure 5rhui5/cds-kubernetes-rhel9:1788880445Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/cds-rhel9:1788880464Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/haproxy-rhel9:1788880456Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/installer-rhel9:1788765051Fixed 2026-09-09RHSA-2026:66018
Red Hat Update Infrastructure 5rhui5/rhua-rhel9:1788880581Fixed 2026-09-09RHSA-2026:66018
Red Hat Enterprise Linux 6tarOut of support scope
Red Hat Enterprise Linux 7tarOut of support scope
Red Hat Hardened Imagesaardvark-dnsNot affected
Red Hat Hardened ImageschunkahNot affected
Red Hat Hardened Imagesgrafana12.4Not affected
Red Hat Hardened Imagesgrafana13.1Not affected
Red Hat Hardened ImagesnetavarkNot affected
Red Hat Hardened Imagesnodejs26Not affected
Red Hat Hardened Imagespython-cryptographyNot affected
Red Hat Hardened ImagesrustNot affected
5 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-18477.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON