CVE Database›CVE-2026-29518

CVE-2026-29518

rsync: TOCTOU symlink race condition allowing local privilege escalation in daemon mode without chroot.

Loading…

Severity

Important

Red Hat Product Security

7.8

CVSS 3.1

Review impact separately from score.

Published · May 20, 2026

Updated · October 9, 2026

Description

A flaw was found in rsync. An rsync daemon configured with "use chroot = no" is exposed to a time-of-check / time-of-use race on parent path components. A local attacker with write access to a module can replace a parent directory component with a symlink between the receiver's check and its open(), redirecting reads (basis-file disclosure) and writes (file overwrite) outside the module. Under elevated daemon privilege this allows privilege escalation. Default "use chroot = yes" is not exposed. Reach: local attacker on the daemon host, write access to a module path, daemon configured with use chroot = no.

Statement

This flaw, a Time-of-Check Time-of-Use (TOCTOU) race condition, allows a local attacker with write access to an rsync module path to achieve privilege escalation. This vulnerability specifically impacts rsync daemons configured with use chroot = no. Red Hat's default rsync daemon configuration utilizes use chroot = yes, which is not susceptible to this issue.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To prevent exploitation, ensure the rsync daemon is configured with use chroot = yes. This setting, which is the default, isolates the rsync process and prevents the symlink race condition. If use chroot = no is present in the rsync configuration (e.g., /etc/rsyncd.conf), it must be changed to use chroot = yes. A restart of the rsync service is required for any configuration changes to take effect.

CVSS / CWE

CVSS 3.1 · 7.8
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition