JLSEC-2026-1428: Race Condition
rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the non-daemon receiver's destination directory handling that allows an attacker who can manipulate destination path parent components to redirect file writes to unintended locations. Attackers can substitute a symlink for a component of the destination path between the path resolution and chdir() call, causing the receiver's working directory to be established outside the intended destination tree so that subsequent relative-path file writes land in unintended filesystem locations.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/rsync_jllto a version that resolves this vulnerability.Fixed in 3.5.0+0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects the non-daemon rsync receiver when it handles a destination directory whose parent path components can be manipulated by an attacker. Exploitation is local and requires low privileges, as reflected by the AV:L and PR:L vector.
What must an attacker do to exploit the race?
An attacker must be able to replace a destination-path component with a symlink during the window between path resolution and the receiver's chdir() call. This can cause subsequent relative-path writes to be made outside the intended destination tree.
What is the available fix?
The issue is described as affecting rsync versions before 3.5.0. Updating to rsync 3.5.0 or later addresses the affected version range.
What can be done if updating is not immediately possible?
Ensure that untrusted or lower-privileged users cannot modify parent components of rsync destination paths. Avoid destination directory trees where an attacker can race path-component changes or substitute symlinks during a transfer.