CVE-2026-18477Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
- 4.4MediumCVSS base score
- 0.10%Exploitation in 30 daysEPSS · top 99% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 3 days later
· 3 days later
Published
- 3 months later
· 3 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium4.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium4.4 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.10% · top 99% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.4.
Affected products
Red Hat · Red Hat Enterprise Linux 10
- unaffected 2:1.35-13.el10_2 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 2:1.30-13.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 2:1.34-13.el9_8 – < *
- unaffected 1788205779 – < *
Red Hat · Red Hat Hardened Images
- unaffected 1.35-9.1.hum1 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880445 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880464 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880456 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788765051 – < *
Red Hat · Red Hat Update Infrastructure 5
- unaffected 1788880581 – < *
Red Hat · Red Hat Enterprise Linux 6
All versions: unknown
Red Hat · Red Hat Enterprise Linux 7
All versions: unknown
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
Red Hat · Red Hat OpenShift Container Platform 5
All versions: affected
What to do
Workaround: 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.
References
References8
- RHSA-2026:49361 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:61581 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:61586 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:61783 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:66018 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:70390 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-18477 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2509735 (opens in a new tab)issue-trackingx_refsource_REDHAT
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-52336 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-18477)Record last updated .