
CVE catalog
CVE-2026-18477
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 restor
- Severity
- Medium · CVSS 4.4
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.08% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | tar | sid | 1.35+dfsg-7 | vulnerable |
| Debian | tar | forky | 1.35+dfsg-6 | vulnerable |
| Debian | tar | trixie | 1.35+dfsg-3.1 | vulnerable |
| Debian | tar | bookworm | 1.34+dfsg-1.2+deb12u1 | vulnerable |
| Cpe | tar | Not reported | Not reported | unknown |
| Cpe | openshift_container_platform | Not reported | Not reported | unknown |
| Cpe | enterprise_linux | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | tar | source | sid | (unfixed) | not yet assigned | Not reported | [1143836] |
| Debian | tar | source | forky | (unfixed) | not yet assigned | Not reported | [1143836] |
| Debian | tar | source | trixie | (unfixed) | not yet assigned | Not reported | [1143836] |
| Debian | tar | source | bookworm | (unfixed) | not yet assigned | Not reported | [1143836] |
Notes
[trixie] tar: Minor issue [bookworm] tar: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [tar]Affected
Details (2)
1.34+dfsg-1.2+deb12u1· amd64 · bookwormAffected
nvd · tar · debian · bookworm; nvd · tar · debian · 12
1.34+dfsg-1.2+deb12u1· arm64 · bookwormAffected
nvd · tar · debian · bookworm; nvd · tar · debian · 12
- [tar-scripts]Affected
Source package: [tar]
Details (2)
1.34+dfsg-1.2+deb12u1· amd64 · bookwormAffected
nvd · tar · debian · bookworm; nvd · tar · debian · 12
1.34+dfsg-1.2+deb12u1· arm64 · bookwormAffected
nvd · tar · debian · bookworm; nvd · tar · debian · 12
[Debian 13 (Trixie)]
- [tar]Affected
Details (2)
1.35+dfsg-3.1· amd64 · trixieAffected
nvd · tar · debian · 13
1.35+dfsg-3.1· arm64 · trixieAffected
nvd · tar · debian · 13
- [tar-scripts]Affected
Source package: [tar]
Details (2)
1.35+dfsg-3.1· all · trixieAffected
nvd · tar · debian · 13
1.35+dfsg-3.1· all · trixieAffected
nvd · tar · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2026_61581.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-18477]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-18477]
- [https://security-tracker.debian.org/tracker/CVE-2026-18477]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-18477.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2633.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]