CVE Vulnerabilities

CVE-2026-29518

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: May 20, 2026 | Modified: Jun 30, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.8 IMPORTANT
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Ubuntu
HIGH
root.io logo minimus.io logo echo.ai logo

Rsync versions before 3.4.3 contain a time-of-check to time-of-use (TOCTOU) race condition in daemon file handling that allows attackers to redirect file writes outside intended directories by replacing parent directory components with symbolic links. Attackers with write access to a module path can exploit this race condition to create or overwrite arbitrary files, potentially modifying sensitive system files and achieving privilege escalation when the daemon runs with elevated privileges. This vulnerability can only be triggered if the chroot setting is false.

Weakness

The product checks the state of a resource before using that resource, but the resource’s state can change between the check and the use in a way that invalidates the results of the check.

Affected Software

NameVendorStart VersionEnd Version
RsyncSamba*3.4.3 (excluding)
Red Hat Enterprise Linux 10RedHatrsync-0:3.4.4-1.el10_2*
Red Hat Enterprise Linux 8RedHatrsync-0:3.1.3-27.el8_10*
Red Hat Enterprise Linux 9RedHatrsync-0:3.2.5-7.el9_8.2*
Red Hat Enterprise Linux 9RedHatrsync-0:3.2.5-7.el9_8.2*
Red Hat Discovery 2RedHatdiscovery/discovery-ui-rhel9:1782166952*
RsyncUbuntudevel*
RsyncUbuntuesm-infra-legacy/trusty*
RsyncUbuntuesm-infra-legacy/xenial*
RsyncUbuntuesm-infra/bionic*
RsyncUbuntuesm-infra/focal*
RsyncUbuntuesm-infra/xenial*
RsyncUbuntujammy*
RsyncUbuntunoble*
RsyncUbuntuquesting*
RsyncUbunturesolute*
RsyncUbuntuupstream*

Potential Mitigations

References