CVE-2026-18477
ADVISORY - debianSummary
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.
- tar (bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1143836) [trixie] - tar (Minor issue) [bookworm] - tar (Minor issue) https://bugzilla.redhat.com/show_bug.cgi?id=2509735
Common Weakness Enumeration (CWE)
Time-of-check Time-of-use (TOCTOU) Race Condition
Debian
-
| Package | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
|---|---|---|---|---|---|
| debian/tar | deb | debian | 12 | >0 | Not yet available |
| debian/tar | deb | debian | unstable | >0 | Not yet available |
| debian/tar | deb | debian | 13 | >0 | Not yet available |
| debian/tar | deb | debian | 14 | >0 | Not yet available |
Severity and metrics
No CVSS data available from this advisory.
NIST
0.8
CVSS SCORE
4.4mediumAlpine
-
Ubuntu
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/Amediumminimos
MINI-f95f-ccg5-864x
-