Time-of-check Time-of-use (TOCTOU) Affecting tar-debugsource package, versions <2:1.35-13.el10_2


Severity

Recommended
0.0
medium
0
10

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.08% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ROCKY10-TARDEBUGSOURCE-19692121
  • published12 Sept 2026
  • disclosed3 Aug 2026

Introduced: 3 Aug 2026

CVE-2026-18477  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:10 tar-debugsource to version 2:1.35-13.el10_2 or higher.
This issue was patched in RLSA-2026:61586.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tar-debugsource package and not the tar-debugsource package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:10 relevant fixed versions and status.

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 Base Scores

version 3.1