CVE-2026-18477: Tar: tar: toctou in incremental dumpdir 'x' rename handling allows restore path escape
Vulnerability summary
CVE-2026-18477 is a medium (CVSS 4.4) vulnerability in gnu tar. EPSS estimates a 0.10% chance of exploitation in the next 30 days, higher than 1% of scored vulnerabilities.
Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 1Timeline
- 03-08-2026PublishedVulnerability first disclosed.
- 05-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
- NVDNIST4.4MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
EPSS trend
Probability
0.10%
Chance of exploitation in the next 30 days
Percentile
1%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.08% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard3 products
- gnutarAll versions (No fix recorded)
- gnutar-docAll versions (No fix recorded)
- gnutar-rmtAll versions (No fix recorded)
Redhat3 products
- enterprise_linux8.0 | 9.0 | 10.0
- openshift_container_platform4.0
- tar< 0:1.35-9.1.hum1 | < 2:1.35-9.1.hum1
Wolfi3 products
- gnutarAll versions (No fix recorded)
- gnutar-docAll versions (No fix recorded)
- gnutar-rmtAll versions (No fix recorded)
Debian1 product
- tarAll versions (No fix recorded)
Gnu1 product
- tar1.35
Ubuntu1 product
- tarAll versions (No fix recorded)
6 vendors · 12 products
References
15 links- images.redhat.comARTICLE