Skip to main content
CVE-2026-18477VulnerabilityPublished Updated

tar · TOCTOU (Time-of-Check Time-of-Use) vulnerability

Affects tarSource GCVE Database

0
Compare
Authoritative record:CVE-2026-18477· Medium 4.4

Not known to be exploited · CVSS 4.4 Medium.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
4.4Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (redhat)CVSS 3.14.4
EPSS
0.1% chance of exploitation in 30 days – higher than 0% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10tarpkg:deb/ubuntu/tar?arch=source&distro=stonkingOther threatsAffected
  • =1.35+dfsg-4
  • =1.35+dfsg-5ubuntu1
Fixed in–
Ubuntu 26.04 LTStarpkg:deb/ubuntu/tar?arch=source&distro=resoluteOther threatsAffected
  • 1.35+dfsg-3.1build1 – 1.35+dfsg-4ubuntu0.4
7 affected builds
Fixed in–
Ubuntu 24.04 LTStarpkg:deb/ubuntu/tar?arch=source&distro=nobleOther threatsAffected
  • 1.34+dfsg-1.2ubuntu1 – 1.35+dfsg-3ubuntu0.4
12 affected builds
Fixed in–
Ubuntu 22.04 LTStarpkg:deb/ubuntu/tar?arch=source&distro=jammyOther threatsAffected
  • 1.34+dfsg-1build1 – 1.34+dfsg-1ubuntu0.1.22.04.6
9 affected builds
Fixed in–
Ubuntu Pro 20.04 LTStarpkg:deb/ubuntu/tar?arch=source&distro=esm-infra/focalOther threatsAffected
  • 1.30+dfsg-6 – 1.30+dfsg-7ubuntu0.20.04.4+esm3
9 affected builds
Fixed in–
Ubuntu Pro 18.04 LTStarpkg:deb/ubuntu/tar?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 1.29b-2 – 1.29b-2ubuntu0.4+esm4
9 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…