# CVE-2026-18477: Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-03 · Modified: 2026-11-05
- Aliases: RHSA-2026:49361, UBUNTU-CVE-2026-18477, DEBIAN-CVE-2026-18477, CGA-62p8-p55w-8hv7, CGA-6mcc-f9mp-cxj9, CGA-hgrg-pr2j-rw66, CGA-hw3x-x556-3rqr, CGA-mj3q-7hxc-pp4g, CGA-vqm8-jx54-c2cp
- Record: https://cvemate.com/vulnerability/CVE-2026-18477 · JSON: https://cvemate.com/vulnerability/CVE-2026-18477/json

## Description

```text
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.
```

## Signals

- CVSS: 4.4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
- EPSS: 0.104%, percentile 1.062%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard gnutar (Chainguard): All versions (No fix recorded)
- chainguard gnutar-doc (Chainguard): All versions (No fix recorded)
- chainguard gnutar-rmt (Chainguard): All versions (No fix recorded)
- wolfi gnutar (Wolfi): All versions (No fix recorded)
- wolfi gnutar-doc (Wolfi): All versions (No fix recorded)
- wolfi gnutar-rmt (Wolfi): All versions (No fix recorded)
- debian tar (Debian): All versions (No fix recorded)
- ubuntu tar (Ubuntu): All versions (No fix recorded)
- gnu tar: 1.35
- redhat enterprise\_linux: 8.0 \| 9.0 \| 10.0
- redhat openshift\_container\_platform: 4.0
- redhat tar (Red Hat): \< 0:1.35-9.1.hum1 \| \< 2:1.35-9.1.hum1

## References

- <https://access.redhat.com/errata/RHSA-2026:49361>
- <https://access.redhat.com/errata/RHSA-2026:61581>
- <https://access.redhat.com/errata/RHSA-2026:61586>
- <https://access.redhat.com/errata/RHSA-2026:61783>
- <https://access.redhat.com/errata/RHSA-2026:66018>
- <https://access.redhat.com/errata/RHSA-2026:70390>
- <https://access.redhat.com/security/cve/CVE-2026-18477>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2509735>
- <https://access.redhat.com/security/updates/classification/>
- <https://images.redhat.com/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_49361.json>
- <https://www.cve.org/CVERecord?id=CVE-2026-18477>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-18477>
- <https://ubuntu.com/security/CVE-2026-18477>
- <https://security-tracker.debian.org/tracker/CVE-2026-18477>

---

Data as of 2026-12-05T03:12:29.748Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
