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

[CVE catalog]

Severity
Medium · CVSS 4.4CVSS: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.

DistributionPackageReleaseVersionStatus
Debiantarsid1.35+dfsg-7vulnerable
Debiantarforky1.35+dfsg-6vulnerable
Debiantartrixie1.35+dfsg-3.1vulnerable
Debiantarbookworm1.34+dfsg-1.2+deb12u1vulnerable
CpetarNot reportedNot reportedunknown
Cpeopenshift_container_platformNot reportedNot reportedunknown
Cpeenterprise_linuxNot reportedNot reportedunknown

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiantarsourcesid(unfixed)not yet assignedNot reported[1143836]
Debiantarsourceforky(unfixed)not yet assignedNot reported[1143836]
Debiantarsourcetrixie(unfixed)not yet assignedNot reported[1143836]
Debiantarsourcebookworm(unfixed)not yet assignedNot reported[1143836]

[Debian bug #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 · bookworm

      Affected

      nvd · tar · debian · bookworm; nvd · tar · debian · 12

    • 1.34+dfsg-1.2+deb12u1 · arm64 · bookworm

      Affected

      nvd · tar · debian · bookworm; nvd · tar · debian · 12

  • [tar-scripts]Affected

    Source package: [tar]

    Details (2)
    • 1.34+dfsg-1.2+deb12u1 · amd64 · bookworm

      Affected

      nvd · tar · debian · bookworm; nvd · tar · debian · 12

    • 1.34+dfsg-1.2+deb12u1 · arm64 · bookworm

      Affected

      nvd · tar · debian · bookworm; nvd · tar · debian · 12

[Debian 13 (Trixie)]

  • [tar]Affected
    Details (2)
    • 1.35+dfsg-3.1 · amd64 · trixie

      Affected

      nvd · tar · debian · 13

    • 1.35+dfsg-3.1 · arm64 · trixie

      Affected

      nvd · tar · debian · 13

  • [tar-scripts]Affected

    Source package: [tar]

    Details (2)
    • 1.35+dfsg-3.1 · all · trixie

      Affected

      nvd · tar · debian · 13

    • 1.35+dfsg-3.1 · all · trixie

      Affected

      nvd · tar · debian · 13

Observed:

References